Article View: fj.net.ldap
Article #176slapadd -l arquivo.ldif
From: Grejaooo
Date: Wed, 09 May 2007 19:34
Date: Wed, 09 May 2007 19:34
90 lines
3636 bytes
3636 bytes
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
Technical Details
Message-ID:
<1178739254.542004.98710@o5g2000hsb.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o5g2000hsb.googlegroups.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 103627,129f4cefd6ed6342,start X-Google-Attributes: gid103627,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!o5g2000hsb.googlegroups.com!not-for-mail From: Grejaooo <grejao@gmail.com> Newsgroups: fj.net.ldap Subject: slapadd -l arquivo.ldif Date: 9 May 2007 12:34:14 -0700 Organization: http://groups.google.com Lines: 91 Message-ID: <1178739254.542004.98710@o5g2000hsb.googlegroups.com> NNTP-Posting-Host: 200.251.90.2 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1178739262 25179 127.0.0.1 (9 May 2007 19:34:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 9 May 2007 19:34:22 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; pt-BR; rv:1.8.1.3) Gecko/20070309 Firefox/2.0.0.3,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: o5g2000hsb.googlegroups.com; posting-host=200.251.90.2; posting-account=xKgFiQ0AAADFYxoNaZKS2iYE7LOFQuYK