LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ldap invalid credentials (https://www.linuxquestions.org/questions/linux-networking-3/ldap-invalid-credentials-266204/)

johond 12-14-2004 05:07 AM

ldap invalid credentials
 
(im sorry this is a double post)

Hi I'm trying to install samba with ldap, but i have some problem with ldapadd:
Code:


ldapadd -v -x -h sun -D "cn=admin, dc=ambiente, dc=lan" -f base.ldif -W
ldap_init( sun, 0 )
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

but I have in slapd.conf:
rootpw secret

The following is my slapd.conf:

Code:

include        /etc/ldap/schema/core.schema
include        /etc/ldap/schema/cosine.schema
include        /etc/ldap/schema/nis.schema
include        /etc/ldap/schema/inetorgperson.schema
include        /etc/ldap/schema/samba.schema
schemacheck    on
pidfile        /var/run/slapd/slapd.pid
argsfile        /var/run/slapd.args
loglevel        2
modulepath      /usr/lib/ldap
moduleload      back_ldbm
backend                ldbm
database        ldbm
suffix          "dc=sun,dc=ambiente,dc=lan"
rootdn          "dc=sun,dc=ambiente,dc=lan"
directory      "/var/lib/ldap"
index objectClass,uid,uidNumber,gidNumber eq
index cn,mail,surname,givenName eq,subinitial
lastmod        on
access to attribute=userPassword
        by dn="cn=admin,dc=sun,dc=ambiente,dc=lan" write
        by anonymous auth
        by self write
        by * none

access to dn.base="" by * read
access to *
        by dn="cn=admin,dc=sun,dc=ambiente,dc=lan" write
        by * read

rootpw secret


acid_kewpie 12-14-2004 05:31 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Mod edit---
Original thread is http://www.linuxquestions.org/questi...hreadid=266201


All times are GMT -5. The time now is 08:27 PM.