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

ldapadd problem



Hi all

I am using RedHat 8.0 and i want to build a common address book for my
users for mailing purpose.
For that i have installed following rpms on my test server.
1.openldap-servers-2.0.25-1
2.nss_ldap-198-3
3.openldap-devel-2.0.25-1
4.openldap-clients-2.0.25-1
5.php-ldap-4.2.2-8.0.5
6.openldap-2.0.25-1

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 ?

Thanks in Advance

Kalpesh