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

Re: invalid format



Am Donnerstag, 23. August 2001 09:29 schrieb Pierangelo Masarati:
> Irmund Thum wrote:
> > openldap is driving me nuts; documentation or tutorial material is
> > apparently not adequate to version openldap-servers-2.0.11-9;
> > nearly every example doesn't work!
> > Why is the following an invalid format:
> >
> > ldapadd -x -D "cn=ithum,dc=it97,dc=dyn,dc=dhs,dc=org" -W -f bsp.ldif
> > Enter LDAP Password:
> > ldapadd: invalid format (line 6) entry: "dc=it97,dc=dyn,dc=dhs,dc=org"
>
> What about providing a bit more info. e.g. line 6 of your ldif file?
>
> P.

the relevant lines in slapd.conf:
database        ldbm
suffix          "dc=it97,dc=dyn, dc=dhs, dc=org"
suffix          "o=it,c=DE"
rootdn          "cn=ithum,o=it,c=DE"
directory       /var/lib/ldap
index   objectClass,uid,uidNumber,gidNumber,memberUid   eq
index   cn,mail,surname,givenname                       eq,subinitial

and the example bsp.ldif:
dn: dc=it97,dc=dyn,dc=dhs,dc=org
objectclass: dcObject
objectclass: organization
o: it
dc: it97
cn=ithum,dc=it97,dc=dyn,dc=dhs,dc=org
objectclass: organizationalRole
cn=ithum

will result in:
ldapadd -f bsp.ldif -x -D "cn=ithum,dc=it97,dc=dyn,dc=dhs,dc=org" -W
Enter LDAP Password:
ldapadd: invalid format (line 6) entry: "dc=it97,dc=dyn,dc=dhs,dc=org"
ldif_record() = 89

this is reproducible on 2 different machines (rh7.1 and suse7.2)

thanks anyway
i.t