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

Re: ldapadd problem



kalpesh thakkar <kalpesh@kalupurbank.com> writes:

> Hi all
>
> I am using RedHat 8.0 and i want to build a common address book for my
> users for mailing purpose.
[...]
> I went through the documentation and but i am not able to add entries of
> the persons .when i use ldapadd it gives me following error
>
> adding new entry "cn=Chetan Panchal, dc=example, dc=com"
> ldap_add: Object class violation
>         additional info: attribute 'mail' not allowed
>
> ldif_record() = 65
>
> my ldif file is looks like this
>
> dn: cn=Chetan Panchal, dc=example, dc=com
> objectClass: person
> cn: Chetan Panchal
> sn: Panchal
> mail: cpanchal@example.com
>
> If i remove "mail: cpanchal@example.com" from the ldif file it
> successfully adds theentry.
>
> Pls tell me where i am wrong ?

The attribute 'mail' is not part of the objectclass person, but part
of objectclass inetorgperson.

-Dieter

-- 
Dieter Kluenter  | Systemberatung
Tel:040.64861967 | Fax: 040.64891521
mailto: dkluenter(at)dkluenter.de
http://www.avci.de