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

Re: ldapadd returning strange messages (undocumented?)



You need to have the dn
dn: ou=staff, o=Netopolis, c=US
before trying to add the dn
dn: ou=department, ou=staff, o=Netopolis, c=US
and so on.
Your LDIF should look like...

dn: ou=staff, o=Netopolis, c=US
objectClass: top
objectClass: organizationalUnit
ou: staff

dn: ou=department,ou=staff, o=Netopolis, c=US
objectClass: top
objectClass: organizationalUnit
ou: department

dn: cn=Janelle Overhaus, ou=department, ou=staff, o=Netopolis, c=US

all the required objectClass and user attributes here.

Raj



Blake Binkley wrote:

> Gerrit Thomson wrote:
>
> > stucture to get something like
> >
> > dn: cn=Janelle Overhaus, ou=department, ou=staff, o=Netopolis, c=US
> >
> > cheers,
> >    Gerrit Thomson.
> >
>
> tried it, now getting even more cryptic error:
> adding new entry cn=Janelle Overhaus, ou=department, ou=staff, o=Netopolis,
> c=US
> ldap_add: No such object
> ldap_add matched: o=Netopolis, c=US
>
> it didn't add her in either...
> (using ldbmcat to view id2entry.gdbm)