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

Re: BINDDN in ldap.conf



At 12:46 PM 8/22/2004, Artur Kokoszka wrote:
>Hello list
>
>When I  use a command:
>ldapsearch -x '(objectclass=*)' -W -D "cn=admin, dc=example, dc=com"
>all works good.
>But when I add BINDDN into the /etc/ldap/ldap.conf file, and try to use:
>ldapsearch -x '(objectclass=*)' -W
>I've got an error:
>ldap_bind: Invalid credentials (49)
>
>I use debian sarge with standard ldap/slapd packege (v2.1).
>My /etc/ldap/ldap.conf file contains:
>
>BASE    dc=example,dc=com                        #works good
>URI     ldap://localhost/                                   #works good
>BINDDN  cn=admin,dc=example,dc=com     #does not work
>
>Why default dn bind specified in /etc/ldap/ldap.conf does not work ?

Because BINDDN is user-only.  See ldap.conf(5).


>Greetings,
>Artur
>
>