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

Re: Newbie question : adding (mail) record



--Le mercredi 13 juin 2001 22:03 +0200 eric@sen.dyndns.org disait:

[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

What's her surname?

You MUST specify her surname. At least if in your slapd.conf you include schema/core.schema:

objectclass ( 2.5.6.6 NAME 'person' SUP top STRUCTURAL
        MUST ( sn $ cn )

sn means surname. You must add:

sn: Jensen

----
David Olivier
David.Olivier@univ-lyon2.fr
Les Cahiers antispécistes: http://www.cahiers-antispecistes.org/

 Les canards et les pigeons,
 les porcs et les agneaux
 mettent leurs gouttes de sang
 sous les multiplications;
 et les terribles hurlement des vaches étripées
 emplissent de douleur la vallée
 où l'Hudson s'enivre d'huile.

Federico Garcia Lorca
----
Visite un abattoir !
http://vegetariensplessis.online.fr/temoignage.html