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

Newbie question : adding (mail) record



Just experimenting with openldap (2.0.11) and trying set-up mail records.

Ist I "initialize" the database

[root@sen libexec]# ldapadd -f /tmp/initldap -w secret -D 'cn=Staff, dc=bc,
dc=com'
adding new entry "dc=bc,dc=com"

adding new entry "cn=Staff,dc=bc,dc=com"


2nd : I want to add mail record and i get :


[root@sen libexec]# ldapadd -f /tmp/inFILE-ldap -w secret -D 'cn=Staff,
dc=bc, dc=com'
adding new entry "cn=Barbara J Jensen,cn=Staff, dc=bc, dc=com"
ldap_add: Object class violation
        additional info: missing required attribute

ldif_record() = 65


Here's my LDIF file :

dn: cn=Barbara J Jensen,cn=Staff, dc=bc, dc=com
cn: Barbara J Jensen
cn: Babs Jensen
objectClass: top
objectClass: person
objectClass: InetOrgPerson
mail: bab@bc.com

Could you tell me what's wrong? Could not find anything relevant in the doc.

TIA

(NEWBIE) Eric