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

Re: Adding Initial Entries via ldapadd and ldif file



Hi Peter

Your first entry in the ldif file should consist of:

dn: dc=pvpsc,dc=com
objectclass: top
objectclass: dcObject
dc: pvpsc

You may have to add the top level entry first:

dn: dc=com
objectclass: top
objectclass: dcObject
dc: com

Regards, Michael

------ ldif file --------

dn: ou=People,dc=pvpsc,dc=com
ou: People
objectClass: top
objectClass: organizationalUnit
description: Parent object of all UNIX accounts



root@kodos:/usr/local/openldap/bin# ./ldapadd -x -W -D 'cn=Manager,dc=pvpsc,dc=com' -f ../ldif/pvpsc.ldif -c
Enter LDAP Password:
adding new entry "ou=People,dc=pvpsc,dc=com"
ldap_add: No such object (32)


adding new entry "ou=Groups,dc=pvpsc,dc=com"
ldap_add: No such object (32)

ldapadd: invalid format (line 13) entry: "cn=pstickney,ou=People,dc=pvpsc,dc=com"
adding new entry "cn=staff,ou=Groups,dc=linuxlaboratory,dc=org"
ldap_add: Server is unwilling to perform (53)
additional info: no global superior knowledge


--
visit: http://www.stepping-stone.ch
--
e-mail: michael.eichenberger@stepping-stone.ch
mobile: +41 76 392 36 23
icq: 238901781