Evolution Data Sources LDAP Backend For GConf ============================================= This is a special-purpose backend for GConf which enables default mail accounts, addressbooks and calendars for Evolution to be configured using each user's LDAP entry. By setting each user's mail address, incoming/outgoing mail server addresses and addressbook/calendar addresses in the user's LDAP entry, Evolution will be automatically configured to use these addresses. Getting it Going ================ Once installed, you first need to point the backend at the appropriate LDAP server. Edit /etc/gconf/2/evoldap.conf: --- ldap.blaa.com ou=people,dc=blaa,dc=com --- should be pointed at your LDAP server, should usually be left blank (it defaults to 389, the standard port for LDAP) and should point to the location in LDAP where your user entries are stored. You then need to store the mail account and addressbook/calendar information in your user's LDAP entries. Using the default template (see below for details on the template) you need to install the LDAP schemas from in your LDAP server evoldap.schema. How you install the custom schema depends entirely on the LDAP server you're using, but with the openldap server, you can just edit /etc/openldap/slapd.conf and add include /etc/openldap/schema/evoldap.schema somewhere near the top of the file. You then install the .schema file in /etc/openldap/schema and restarted slapd. Once the schema is installed, you need to modify the LDAP entries to add the "evolutionMailAccount", "evolutionAddressbookSource", "evolutionCalendarSource" and "evolutionTasksSource" objectClasses and set the cn, mail, evolutionMailSourceURI, evolutionMailTransportURI, evolutionAddressbookURI, evolutionCalendarURI and evolutionTasksURI attributes. You can use any method you like to modify the LDAP entries e.g. a graphical LDAP editor like "gq" or a slapd.replog script with ldapmodify: --- ldapmodify -x -W -D cn=Manager,dc=blaa,dc=com -h ldap.blaa.com < Mark McLoughlin markmc@blaa.com imap://markmc@mail.blaa.com/;use_ssl=always smtp://mail.blaa.com ] --- Finally, in order to make GConf pull from this configuration source, you need to add it to the GConf path file in /etc/gconf/2/path by adding the configuration source address - "evoldap:readonly:/etc/gconf/2/evoldap.conf" - after the user's configuration source - e.g. --- # Give users a default storage location, ~/.gconf xml:readwrite:$(HOME)/.gconf # Pull default Evolution account from LDAP evoldap:readonly:/etc/gconf/2/evoldap.conf --- Getting More Complex ==================== Although this default method of setting things up should work for most people, the configuration file does give you a fair number of options if e.g. you didn't want to (or couldn't) add the custom evolutionMailAccount schema to your LDAP server or if you wanted to have multiple default accounts per user. The default template looks like: ---