[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: OpenLDAP - no access, user doesn't exist, credentials wrong



On Mon, Feb 20, 2006 at 08:33:19PM +0100, Jürgen Herz wrote:
> Andreas Hasenack wrote:
> 
> >> E.g.
> >> ldapsearch -D "cn=admin,dc=mysystem,dc=test" -x -w secret cn=itsme
> >> or
> >> ldapsearch -D "cn=itsme,dc=mysystem,dc=test" uid=ldap -W
> >> and entering mypassword as password.
> > 
> > Someone on IRC the other day had a similar problem with a debian setup.
> > If I remember correctly, there was a bug in the way this admin user is
> > created. Try specifying rootdn/rootpw in slapd.conf and binding whith
> > those credentials. When that works, you may want to try changing the
> > cn=admin password with ldappasswd (binding as rootdn).
> 
> Thanks for your answer.
> I did what you wrote and inserted
>   rootdn "dc=root,dc=mysystem,dc=test"
>   rootpw pass
> after
>   suffix "dc=mysystem,dc=test"
> and tried
>   ldapadd -D "cn=root,dc=mysystem,dc=test" -x -w pass
                ^^

Maybe a typo in the email, but you wrote "dc=root" above in rootdn and
"cn=root" here.

Also, make sure you are contacting the right ldap host. Since you didn't
use -h in the ldapadd command line, the default will be taken from
/etc/openldap/ldap.conf