[Date Prev][Date Next]
OpenLDAP21 starts with no password but not with a password
If I leave slapd.conf not having a rootpw set, then slapd starts up fine
but then I cannot add anything, since it asks for a password.
If I put a password in plaintext or encrypted, it immediately exits.
Turning on the -d-1 option gives this reason:-
line 64 (rootpw ***)
/usr/local/etc/openldap/slapd.conf: line 64: rootpw can only be set when
rootdn is under suffix
access to * by * read
suffix "dc=hinwick,dc=demon,dc=co,dc=uk,o=Hinwick Hall,c=GB"
rootdn "cn=root, dc=hinwick,dc=demon,dc=co,dc=uk"
index objectClass eq
Thats all that is in slapd.conf.
So I hash'ed the rootpw out and slapd started but was unable to use:-
ldapadd -x -D "cn=Manager,dc=example,dc=com" -W -f eg.ldif
to test becasue it asked for a password and whatever I ended was