-   Linux - Networking (
-   -   ldap invalid credentials (

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:

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:


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/
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.

Mod edit---
Original thread is

All times are GMT -5. The time now is 05:49 PM.