setup:ldap
This is an old revision of the document!
OpenLDAP Server configuration
When doing some operations, dealing with OpenLDAP can be a pain in the butt, as the community did retarded choice (like the slapd.d configuration mess, which makes a root creation a real pain in the arse).
Therefore, if you don't read carefully the following instructions, you might lose your time while pissing off.
Enable access to cn=config from PHPLdapAdmin
Hashing a password can be done with slappasswd.
Put the following content in a file (update_adminpass.ldif in our case).
dn: cn=config
changetype: modify
# cn=admin,cn=config is already set in a fresh slapd install
dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcRootPW
olcRootPW: {SSHA}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Then execute the following command in your shell:
# ldapadd -Y EXTERNAL -H ldapi:/// -f update_adminpass.ldif
setup/ldap.1374225774.txt.gz · Last modified: 2013/07/19 11:22 by root