Outlook 2007 + OpenLdap + CentOS 5.2
Posted by johnalvero on October 22, 2008
1. Install Openldap
yum install openldap-servers.i386
2. You might to install the clients
yum install openldap-clients.i386
3. Edit the file /etc/openldap/slapd.conf. Make necessary changes specially “dc=companyname,dc=com”
suffix “dc=companyname,dc=com”
rootdn “cn=manager,dc=companyname,dc=com”
rootpw {SSHA}wCaiPZjCvjCbQX7xp8j/95zBnl9XQQIj
The rootpw parameter is the hash from the command slappasswd -s test
4. Copy the file /etc/openldap/DB_CONFIG.example to /var/lib/ldap as DB_CONFIG
cp /etc/openldap/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
5. Restart the ldap service
service ldap restart
6. Create a file named base.ldif
dn: dc=companyname,dc=com
dc: companyname
objectClass: domain
7. Import base.ldif into your directory
ldapadd -x -D “cn=manager,dc=companyname,dc=com” -W -f base.ldif
Note that the password is the same password in slapd.conf.
8. Populate your directory. Create a file named entries.ldif
dn: ou=People,dc=companyname,dc=com
ou: People
objectClass: organizationalUnitdn: uid=Juan,ou=People,dc=companyname,dc=com
uid: juandelacruz
cn: Juan dela Cruz
displayName: Juan dela Cruz
givenName: Juan
sn: Cruz
objectClass: inetOrgPerson
userPassword: {SSHA}6TjW/MbEe4Eahqgo1ccTPSjHHtSKcOcs
mail: juan.delacruz@companyname.com
9. Import entries.ldif
ldapadd -x -D “cn=manager,dc=companyname,dc=coml” -W -f entries.ldif -c
10. Now you are done. Configure your Outlook client. You can leave most settings to default. Of importance is the Server Name and Search Base settings which should be set to “dc=companyname,dc=com”.
Good luck.