(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