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

RE: person attributes



The objectclass definitions very likely allready exists.

but if yo wantto add mail or uid, you need to add other objectclasses to the
entry.
you al least will need "organizationalPerson" and "inetorgPerson" extra to
"person" 
as you're using now.

Success Dolf Smits

-----Original Message-----
From: Stefan Brohs [mailto:sbrohs@iprimus0800.net]
Sent: vrijdag 6 juli 2001 11:45
To: Alexandra Navarro; 'openldap-software@OpenLDAP.org'
Subject: Re: person attributes


Hi,

if no at or oc files exist you should create it for your needs. Be 
carefully about the syntax and make sure that the attribute you want to 
add is allowed at a minimum:

# Example
objectclass users
       requires
               objectclass,
               cn,
               uid,
               uidnumber,
               gid,
               gidnumber,
               homedirectory,
               loginshell,
               domain
       allows
               userPassword,
               mailaccount,
               quota

...
Stefan


Alexandra Navarro wrote:

> Hello,
> I have installed openldap, all is right, but, when i try to create a
person
> objet, for example:
> 
> dn: cn=Pepe Perez, o=larita.eon.net
> sn: Perez
> cn: Pepe Perez
> objectclass: person
> userpassword: dsadad
> uid: pperez
> mail: lala@lele.com
> 
> if i put the attributes uid, or mail... the ldapadd allways says:
> 
> ldap_add: Object class violation
>     additional info: attribute not allowed
> 
> I tried to find the file where is defined the objet person, but i didn't
> able to find it.
> and there isn't slapd.at.conf and slapd.oc.conf in my
> /usr/local/etc/openldap
> 
> any ideas?
> thnx
> LaraCroft
> 
> My slapd.conf is:
> 
> # slapd.conf
> include         /usr/local/etc/openldap/schema/core.schema
> pidfile         /usr/local/var/slapd.pid
> argsfile        /usr/local/var/slapd.args
> 
> database        ldbm
> 
> rootdn          "cn=Manager,dc=larita,dc=com"
> 
> rootpw          --password--
> 
> directory       /usr/local/var/openldap-ldbm
> 
> index   objectClass     eq
> 
> 
> 
> ------------------------------------------------------------------
>  Alexandra Navarro Lahoz (anavarro@eon.es) 
>  Departamento de Comunicaciones e Internet 
>  EON Informática, S.A. <http://www.eon.es> 
>  Pza. Herrera de los Navarros nº 2 
>  50002 ZARAGOZA 
>  Tfno. +34 976 203040 
>  Fax +34 976 203050 
>  e-mail eon@eon.es 
> 
> 
>