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

Re: Binding to LDAP

fre, 2002-12-20 kl. 23:17 skrev Theodore Reph:

> When connecting to a ldap server, must  the binddn be the rootdn?


> For example,  
> Ldapsearch -x -w secret -D "cn=Manager,dc=reph,dc=org"

Should work, all things being equal.

> If I add a record to the db that has uid of "Mary" and userPassword
> "secret", shouldn't I be able to connect to the ldap server by doing
> Ldapsearch -x -w secret -D "uid=Mary,dc=reph,dc=org" 

Yes, but it is not wise to use the same password for everyone :-)

> Providing that in the slapd.conf I have
> access to *
> 	by dn="uid=Mary,dc=reph,dc=org" 

This is not normal procedure. First Mary should prove who she is by
authenticating. This she (rather obviously) should be able to do as an
anonymous object.

Secondly, you don't appear to have given Mary any rights.




Tony Earnshaw

When all's said and done ...
there's nothing left to say or do.

e-post:		tonni@billy.demon.nl
www:		http://www.billy.demon.nl