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

Still no success at adding inital entries



Marc Eggeberger writes:
 > now I did as said in the FAQ on www.openldap.org .... I tried to do as
 > written but I get an error:
 > 
 > ldap_bind: Invalid credentials
 > 
 > sldap.conf:
 > database ldbm
 > suffic "dc=everyware, dc=ch"
        ^ typo
   suffix "dc=everyware, dc=ch"	

 > rootdn "cn=Manager, dc=everyware, dc=ch"
 > rootpw secret
 > 
 > 3.ldif:
 > dn: dc=everyware, dc=ch
 >    dc: everyware
 >    o: EveryWare Ltd.
 >    objectclass: organization
 >    objectclass: dcObject
 > 
 > dn: cn=Manager, dc=everyware, dc=ch
 >    cn: Manager
 >    sn: Manager
 >    objectclass: person
 > 
 > this is the command I'm running:
 > 
 > ews3:/tmp/ldif # ldapadd -D "cn=Manager, dc=everyware, dc=ch" -W < 3.ldif

Marc, I think the ldif entries should look like this:

dn: dc=everyware, dc=ch
dc: everyware
o: EveryWare Ltd.
objectclass: organization
objectclass: dcObject

no leading blank on subsequent lines (leading blanks get interpreted
as continuation of the first line, and there is no dn matching such an 
entry.

separate each entry with a single blank line and your ldapadd command
should work.

Bill Anderson
Xerox Research & Technology