I've configured OpenLDAP following the Ubuntu guide (with some minor edits, such as setting a proper password, my own domain name, and creating a staff group instead of an example one under people) through all steps except Replication.
Everything works just fine, except I can't use ldapscripts....
When I execute:
sudo ldapadduser dave staff
I get an LDAP error, and the /var/log/ldapscripts.log states:
>> 05/29/11 - 13:22 : Command : /usr/sbin/ldapadduser dave staff ldap_bind: Invalid credentials (49) ldap_bind: Invalid credentials (49) Error adding user dave to LDAP
I'm pretty lost... I checked backend, frontend, /etc/ldapscripts/ldapscripts.passwd and the password matches...
My ldapscripts.conf file properly states:
SERVER=localhost BINDDN="cn=admin,dc=mydomain,dc=com" # The following file contains the raw password of the binddn # Create it with something like : echo -n 'secret' > $BINDPWDFILE # WARNING !!!! Be careful not to make this file world-readable # DEBIAN: /etc/pam_ldap.secret or /etc/ldap.secret are used. BINDPWDFILE="/etc/ldapscripts/ldapscripts.passwd"
Any ideas are welcome...