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

Re: Newbie question : adding (mail) record



If I interpret the core.schema correctly, it appears that a "person"
(one of your desired objectClass) must have both 'cn' and 'sn' (surname)
attributes.  


"Turenne, Eric" wrote:
> 
> 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

-- 

- Don Buchholz                        <buchholz@easystreet.com>
- TrueDisk, 7431 NW Evergreen Pkwy - #110, Hillsboro, OR  97124
- voice: 503/615-0888 x266                    FAX: 503/640-3365

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature