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

ldapadd help!


I have the file example.ldif

dn: dc=prism,dc=fr
objectclass: dcObject
objectclass: organization
o: Prism Laboratoire
dc: prism

dn: cn=Manager,dc=prism,dc=fr
objectclass: organizationalRole
cn: Manager
[root]#ldapadd -x -D "cn=Manager,dc=prism,dc=fr" -W -f example.ldif 

it's ok!! 

Now I trying add an user, i made another_user.ldif file:

dn: ou=MemberGroupA,dc=prism,dc=fr
ou: MemberGroupA
objectclass: top
objectclass: organizationalUnit
objectclass: inetOrgPerson
description: Members of MemberGroupA

# on va ajouter un nouveau utilisateur

dn: cn=octavio,ou=MemberGroupA,dc=prism,dc=fr
cn: octavio
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
mail: ora@mailhost.prism.uvsq.fr
sn: Ramirez
ou: MemberGroupA
telephoneNumber: 0623804754
userpassword: octaviosecret

[root@azteca openldap]# ldapadd -x -D "cn=Manager,dc=prism,dc=fr" -W -f
Enter LDAP Password:
adding new entry "ou=MemberGroupA,dc=prism,dc=fr"
ldapadd: update failed: ou=MemberGroupA,dc=prism,dc=fr
ldap_add: Object class violation (65)
        additional info: unrecognized objectClass 'inetOrgPerson'

I must modify slapd.conf file, adding:

include      /usr/local/etc/openldap/schema/inetorgperson.schema  ??????

If i do this, slapd daemon not works!


any idea?