I'm iniciant at LDAP and was receiving a error message after the
command
# slapadd -l /tmp/ldap-init.ldif
The following error message:
pdc:/tmp # slapadd -l ldap-init.ldif
bdb_db_open: unclean shutdown detected; attempting recovery.
str2entry: entry -1 has multiple DNs "dc=teste,dc=com,dc=br" and
"cn=admin,dc=teste,dc=com,dc=br"
slapadd: could not parse entry (line=13)
pdc:/tmp #
I would like to know if someone can help me. Here i put my slapd
config file (slapd.conf) and the file ldap-init.ldif, used by the
command.
####################################################################
pdc:/tmp # more ldap-init.ldif
dn: dc=teste,dc=com,dc=br
objectClass: top
objectClass: dcObject
objectClass: organization
dc: teste
o: teste
dn: cn=admin,dc=teste,dc=com,dc=br
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP Administrator
userPassword: IWTfyZSz6boScyKWOGnfspuhxWFvb2X6
pdc:/tmp #
####################################################################
####################################################################
pdc:/etc/openldap # more slapd.conf
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/rfc2307bis.schema
include /etc/openldap/schema/yast.schema
include /etc/openldap/schema/lmc.schema
pidfile /var/run/slapd/slapd.pid
argsfile /var/run/slapd/slapd.args
modulepath /usr/lib/openldap/modules
access to dn.base=""
by * read
access to dn.base="cn=Subschema"
by * read
access to attrs=userPassword,userPKCS12
by self write
by * auth
access to attrs=shadowLastChange
by self write
by * read
access to *
by * read
database bdb
suffix "dc=teste,dc=com,dc=br"
checkpoint 1024 5
cachesize 10000
rootdn "cn=admin,dc=teste,dc=com,dc=br"
rootpw {SSHA}IWTfyZSz6boScyKWOGnfspuhxWFvb2X6
directory /var/lib/ldap
index objectClass eq
####################################################################
*** I was moved the comments from slapd.conf to post here.
thanks for all.
Att
Renato Gregio