Comment 11 for bug 66925

Revision history for this message
Tony Abbott (t-abbott) wrote :

I have the same problem here with slapd 2.2.26-5ubuntu2.2 on Ubuntu 6.06.1 LTS. I am prompted for a password (and confirmation of the password) when installing the package, but this password does not work for the created admin user (cn=admin,dc=nodomain)

Using "strings" on id2entry.db I found and cracked the password that it stored for my admin user. Turns out it is a blank password. This is repeatable, happens every time I install the slapd package.

A workaround to get a usable directory:

The problem is that you cannot authenticate with a blank password. I get

ldap_bind: Server is unwilling to perform (53)
        additional info: unauthenticated bind (DN with no password) disallowed

To get around this, I added

rootdn "cn=admin,dc=nodomain"
rootpw "changeme"

to /etc/slapd.conf and restarted slapd. Then I used ldappasswd to set a new password for my admin user:

ldappasswd -x -D cn=admin,dc=nodomain -w changeme

Then I removed rootdn & rootpw from slapd.conf and restarted slapd again, and was able to continue with my new password.

-t