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

ldap_add: Undefined attribute type by JM



Hello everybody,
I have a problem when I try to add a database at
OpenLdap, with the ldapadd command and a ldif file.
I have got the: openldap-2.0.7-14  version
****************************
My slapd.conf file:
****************************

include		/etc/openldap/schema/core.schema
include		/etc/openldap/schema/cosine.schema
include		/etc/openldap/schema/inetorgperson.schema
include		/etc/openldap/schema/nis.schema
include	
/etc/openldap/schema/redhat/rfc822-MailMember.schema
include		/etc/openldap/schema/redhat/autofs.schema
include	
/etc/openldap/schema/redhat/kerberosobject.schema

schemacheck     off
loglevel        0
timelimit       600

database        ldbm
suffix          "dc=exemple,dc=org"
directory       "/var/lib/ldap"
lastmod on

access to attribute=userpassword
    by dn="cn=root,dc=exemple,dc=org" write
    by self write
    by * none

access to dn=".*ou=Group,dc=exemple,dc=org"
    by dn="cn=root,dc=exemple,dc=org" write
    by * read

access to dn=".*ou=People,dc=exemple,dc=org"
    by dn="cn=root,dc=exemple,dc=org" write
    by * read

rootdn "cn=root,dc=exemple,dc=org"
rootpw toto


The ldif file:

****************************
creation.ldif
****************************
dn: dc=exemple,dc=org
o: exemple
objectClass: dcObject
objectClass: organization
dc: exemple
description: testJM

dn: ou=Group,dc=exemple,dc=org
ou: Group
objectClass: top
objectClass: organizationalUnit
desription: les groupes des utilisateurs

dn: ou=People,dc=exemple,dc=org
ou: People
objectClass: top
objectClass: organizationalUnit
objectClass: domainRelatedObject
associatedDomain: exemple.org
desription: les password

****************************
"The add" command:
****************************
 ldapadd -D "cn=root,dc=exemple,dc=org" -W -x -f
/tmp/creation.ldif

****************************
An the error message is:
****************************
$ldapadd -D "cn=root,dc=exemple,dc=org" -W -x -f
/tmp/creation.ldif
Enter LDAP Password:
adding new entry "dc=exemple,dc=org"

adding new entry "ou=Group,dc=exemple,dc=org"
ldap_add: Undefined attribute type
        additional info: attribute type undefined

ldif_record() = 17


I can't solve this error, so if someone have the
solution, I will very happy to
know it !!!! :=)
Thanks
@+ JM



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Courrier : http://courrier.yahoo.fr