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

Re: Mail Attribute



"Mark A. Fowler" wrote:
> 
> Hello,
> 
> Have set up openldap 2.0.18 on Redhat 7.2. Have successfully added
> entrys using ldapadd except for I am unable to add the mail attribute. I
> added a record with a telephonenumber attribute but cannot add the mail
> attribute. Here is a copy of the telephonenumber record imported from my
> ldif file:
> 
> dn: cn=User,dc=mydomain,dc=com
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> sn: LAstName
> cn: Common Name
> telephonenumber: 111-111-1111
> 
> This record imported with no problem.
> 
> When I try to import the following record I get an error stating
> "attribute mail not allowed":
> 
> dn: cn=User,dc=mydomain,dc=com
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> sn: LastName
> cn: Common Name
> mail: username@domain.com

You need to add the inetOrgPerson objectclass.

Pierangelo.

-- 
Dr. Pierangelo Masarati               | voice: +39 02 2399 8309
Dip. Ing. Aerospaziale                | fax:   +39 02 2399 8334
Politecnico di Milano                 | mailto:masarati@aero.polimi.it
via La Masa 34, 20156 Milano, Italy   |
http://www.aero.polimi.it/~masarati