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

Re: slapd failed to start, please help.

Hi list,

After compiled ldap with the following options, I succesfully started slapd.

But when I tried to data to the ldap with the following command, it asks me for ldap password. What password I should enter here?
ldapadd -W -D "cn=admin,dc=authtec,dc=com" -f /usr/local/work/authtec.ldif -x
Enter LDAP Password:
ldap_bind: Invalid credentials (49)

The slapd.conf file is now look like:
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/nis.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
# courier imap
#include        /usr/local/etc/openldap/schema/authldap.schema
include         /usr/local/etc/openldap/schema/openldap.schema
# postfix qmail
#include        /usr/local/etc/openldap/schema/qmail.schema

pidfile         /var/run/openldap/slapd.pid
argsfile        /var/run/openldap/slapd.args
loglevel -1

#modulepath    /usr/local/libexec/openldap
#moduleload     back_ldap

#prevents user froom looking at passwords
#access to attr=userpassword,clearpassword
access to attr=userpassword
       by      anonymous auth
       by      self write
       by      dn="cn=admin,dc=authtec,dc=com" write
       by      dn="cn=courier,dc=authtec,dc=com" read
       by      * none
#files need access to this
#access to attr=accountstatus
access to *
       by      dn="cn=admin,dc=authtec,dc=com" read
       by      dn="cn=courier,dc=authtec,dc=com" read
access to *
       by      dn="cn=admin,dc=authtec,dc=com" write
       by      users read
       by      self write
       by      * none

database bdb
suffix "dc=authtec,dc=com"
rootdn "cn=admin,dc=authtec,dc=com"
rootpw secret

directory /var/db/openldap-data
replogfile /var/db/replication.log

index cn,sn,mail,uid eq
index objectclass eq

Another question is do I still need back-ldap module?