[CALUG] More LDAP fun

Hugh Brown brownclan at gmail.com
Fri Dec 2 15:39:34 CST 2005


Some quick thoughts:  are you sure you are connecting to the right instance
of ldap (i.e. localhost instead of somewhere else)

The error message makes it sound like something isn't there that you expect
to be:

ldapsearch -x -D 'cn=3Dadmin,dc=3Dhome' -W "(objectClass=3DorganizationalUn=
it)"

should return the Groups, People, and Contacts entities.

Also the ldif file should have a pair of trailing newlines.

Hugh

On 11/27/05, Joe Tseng <jtsengorg at gmail.com> wrote:
>
> All I'm trying to do is add a person to the top of my LDAP tree and I
> can't
> get ldapadd to work for me...  This is what happens:
>
> # ldapadd -x -D 'cn=3Dadmin,dc=3Dhome' -W -f contacts1.ldif
> Enter LDAP Password:
> adding new entry "uid=3Djtseng,ou=3Dcontacts,ou=3Dpeople,dc=3Dhome"
> ldap_add: No such object (32)
>         matched DN: dc=3Dhome
>         additional info: parent does not exist
>
> Here is the LDIF for the top of my tree:
>
> dn: dc=3Dhome
> objectClass: top
> objectClass: dcObject
> objectClass: organization
> o: home
> dc: home
>
> ou: People
> dn:ou=3DPeople,dc=3Dhome
> objectClass: organizationalUnit
>
> ou: Groups
> dn:ou=3DGroups,dc=3Dhome
> objectClass: organizationalUnit
>
> ou: Contacts
> dn:ou=3Dcontacts,ou=3Dpeople,dc=3Dhome
> associatedDomain: home
> objectClass: organizationalUnit
> objectClass: domainRelatedObject
>
> And here is the LDIF for one of my contact entries:
>
> dn: uid=3Djtseng,ou=3Dcontacts,ou=3Dpeople,dc=3Dhome
> mail: joetseng at ...
> uid: jtseng
> givenName: Joe
> sn: Tseng
> cn: Joe Tseng
> objectClass: person
> objectClass: top
> objectClass: inetOrgPerson
>
> Does anyone know if there is something obvious that I'm missing?  And are
> these entries context-sensitive?
>
> --
>
>
> Joe Tseng
>
> "I can be Googled.  Therefore I am."
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://calug.com/pipermail/lug/attachments/20051127/91680403/attachment.h=
tml
> _______________________________________________
> Columbia, Maryland Linux User's Group (CALUG) mailing list
> CALUG Website: http://www.calug.com
> Email postings to: lug at calug.com
> Change your list subscription options:
> http://calug.com/mailman/listinfo/lug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calug.com/pipermail/lug/attachments/20051202/4372340a/attachmen=
t.html


More information about the lug mailing list