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

RE: newbie question: populating the ldap database



Try adding the following line to each person: "objectClass: top". Then, for
each person that has an email address add these lines: "objectClass:
organizationalPerson" and "objectClass: inetOrgPerson". Hence:
 
dn: cn=Thomas Jefferson, dc=people, dc=portalwave, dc=com
objectclass: top
objectclass: person
cn: Thomas Jefferson
sn: Jefferson
 
dn: cn=Thomas2 Jefferson, dc=people, dc=portalwave, dc=com
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
cn: Thomas2 Jefferson
sn: Jefferson
mail: kevyn.nguyen@portalwave.com <mailto:kevyn.nguyen@portalwave.com> 


-----Original Message-----
From: Kevyn Nguyen [mailto:kevyn.nguyen@portalwave.com]
Sent: Monday, March 26, 2001 2:50 PM
To: openldap-software@OpenLDAP.org
Subject: newbie question: populating the ldap database


I have just intalled and configured OpenLDAP on my Red Hat 7. 
Here is what i did:
1.  tar zxvf openldap-stable-20000704.tgz
2.  ./configure
3.  make depend
4.  make
5.  make test
6.  make install
 
make madification to the slapd.conf the start the ldap server.
 
I created the following test.ldif, then using ldapadd command to add the
entry.  This works.

----------------------------------------------------------------------------
-------
dn: cn=Thomas Jefferson, dc=people, dc=portalwave, dc=com
objectclass: person
cn: Thomas Jefferson
sn: Jefferson
----------------------------------------------------------------------------
-------
 
However, when i added a mail attribute, it fail to add.  (note:  i'm not
adding the same entry)
The test.ldif file that DO NOT work:
----------------------------------------------------------------------------
-------
dn: cn=Thomas2 Jefferson, dc=people, dc=portalwave, dc=com
objectclass: person
cn: Thomas2 Jefferson
sn: Jefferson
mail: kevyn.nguyen@portalwave.com <mailto:kevyn.nguyen@portalwave.com> 

----------------------------------------------------------------------------
-------
 
I got this error:
 
ldap_add: Undefined attribute type
        additional info: attribute type undefined
 
Does anyone know why it does not work?
 
<><><><><><><><><><><>
Kevyn Nguyen
 

Attachment: The Portal Wave.gif
Description: GIF image