Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

slapadd -l arquivo.ldif

20 views
Skip to first unread message

Grejaooo

unread,
May 9, 2007, 3:34:14 PM5/9/07
to
Hi all,
I'm trying to install Linbox Directory Server (http://lds.linbox.org)
and for do this i'm reading the on-line documentation (http://
lds.linbox.org/content/LMC/install/en/lmc-generic-installation.html).

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

0 new messages