View Single Post
  #18 (permalink)  
Old 07-01-2007, 01:35 PM
folioguru folioguru is offline
Partner (VAR/HSP)
 
Posts: 38
Default

Quote:
Originally Posted by bobby View Post
As what user did you run the ldapadd? Try specifying the dn when running the ldapsearch. Is there no ou?
Thanks! That was it! All I added was "cn=Manager", and voila!

ldapsearch -H "ldap://example.com" -D 'cn=Manager, dc=example,dc=com' -x -W

Yes, there is an ou, I was just trying to list everything.

The schema used (from slapd.conf):
Quote:
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
I did look at the LDAP Mapped Attributes. I used the same attributes from this tutorial since I was using pretty much the same schema (with the exception of officeperson.schema):
Quote:
dn: cn=John Foo, ou=addressbook, dc=example, dc=com
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: officePerson
cn: John Foo
gn: John
sn: Foo
mail: john.foo@example.com
postalAddress: Green Street 5
title: Uhh?
l: Brussels
o: cudeso.be
ou: Software
postalCode: B-1000
telephoneNumber: +32-2-xxx.xx.xx
mobile: +32-xxx-xx.xx.xx
homePhone: +32-2-xxx.xx.xx
URL: linux.cudeso.be
displayName: cudeso
initials: jf
c: Belgium
Thanks so much!

-ron

Last edited by folioguru : 07-01-2007 at 01:53 PM.
Reply With Quote