this is obsolete doc -- see http://doc.nethence.com/ instead
OpenLDAP configuration
http://pbraun.nethence.com/doc/net/samba-ldap.html
http://pbraun.nethence.com/doc/net/samba.html
http://pbraun.nethence.com/doc/databases/openldap.html
Installation
Install the packages,
yum install openldap-servers openldap-clients
Restart from scratch / clean up
If something goes wrong just after a french install, eventually clean up the whole db up,
rm -rf /var/lib/ldap/*
cp DB_CONFIG.example /var/lib/ldap/DB_CONFIG
chown -R ldap:ldap /var/lib/ldap
Note for DB_CONFIG : otherwise you get this slapd log : bdb_db_open: Warning - No DB_CONFIG file found in directory /var/lib/ldap: (2) Expect poor performance for suffix dc=example,dc=com.
Check everything is gone,
slapcat
Configuration
Edit the configuration,
vi /etc/openldap/slapd.conf
Initialize the db, create an init.ldif containing this,
dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: Example Company
dc: example
dn: cn=admin,dc=example,dc=com
objectclass: organizationalRole
cn: admin
Ref. http://www.openldap.org/doc/admin24/quickstart.html
And create the db,
slapadd -l init.ldif
Usage
Check db's content,
slaptest
ldapsearch -x -b 'dc=example,dc=com'
ldapsearch -x -b 'dc=example,dc=com' '(objectclass=*)'
ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
User Interfaces
Phpldapadmin: http://phpldapadmin.sourceforge.net/
ldapvi: http://www.lichteblau.com/ldapvi/
Shelldap: http://projects.martini.nu/shelldap
Install ldapvi's depedencies,
yum install openldap-devel ncurses-devel readline-devel glib2-devel
Note. glib and glib-devel 1 are probably optional
Then install ldapvi itself,
wget http://www.lichteblau.com/download/ldapvi-1.7.tar.gz
tar xzf ldapvi-1.7.tar.gz
fix PKG_CONFIG_PATH
[...]
References
Official quickstart : http://www.openldap.org/doc/admin24/quickstart.html
LDAP init : http://www.debuntu.org/ldap-server-and-linux-ldap-clients
LDAP master and slave : https://help.ubuntu.com/7.10/server/C/openldap-server.html
Optimization: http://guim.info/dokuwiki/ldap:installation_d_openldap
BSD & ldapsearch : http://wiki.gcu.info/doku.php?id=openbsd:login_ldap
PAM issues :
http://www.mail-archive.com/solaris_fr@x86.sun.com/msg03173.html
http://www.mail-archive.com/solaris_fr@x86.sun.com/msg03163.html
http://www.mail-archive.com/solaris_fr@x86.sun.com/msg03158.html
http://www.mail-archive.com/solaris_fr@x86.sun.com/msg03184.html
http://www.mail-archive.com/solaris_fr@x86.sun.com/msg03193.html