hi,
 
chaning the order of the *.schema inside slapd.conf didn't help...
can someone tell me what is wrong about this ldif format/slapd.conf.... :/
 
LDIF:
dn: cn=fbar,ou=People,dc=vub,dc=ac,dc=be

objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: posixAccount
objectClass: inetLocalMailRecipient
objectClass: shadowAccount

uid: fbar
sn: Bar
givenName: Foo
cn: fbar
userPassword: {crypt}56juWXAises5F
loginShell: /bin/sh
uidNumber: 14201
gidNumber: 20744
homeDirectory: /u/fbar
gecos: Foo Bar
mail: fbar@vub.ac.be
displayName: Foo Bar

slapd.conf
# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema

include         /etc/ldap/schema/inetorgperson.schema
include         /etc/ldap/schema/nis.schema

 
ldapadd -c -x -D cn=admin,dc=vub,dc=ac,dc=be -W -f /root/users.ldif gives:

adding new entry "cn=kbouez,ou=People,dc=vub,dc=ac,dc=be"
ldap_add: Invalid syntax (21)
        additional info: objectClass: value #5 invalid per syntax

minf6:/etc/ldap# slapd -V
@(#) $OpenLDAP: slapd 2.3.30 (Apr  4 2008 21:29:48) $
        jmm@galadriel:/home/jmm/ldap/openldap2.3-2.3.30/debian/build/servers/slapd
 
Thanks in advance...
 
J

2008/7/15 Dieter Kluenter <dieter@dkluenter.de>:
"John Kellen" <jkellen@vub.ac.be> writes:

> Hello,
>
> what schema do i need to have configured in slapd.conf to use this ldif
> file:
>
> dn: cn=aderaede,ou=People,dc=vub,dc=ac,dc=be
> objectClass: top
> objectClass: person
> objectClass: organizationalPerson
> objectClass: inetOrgPerson

this objectclasses are all included in inetorgperson.schema

> objectClass: posixAccount
> objectClass: inetLocalMailRecipient
> objectClass: shadowAccount

this objectclasses are all included in nis.schema

> I have the following configured in slapd.conf
> # Schema and objectClass definitions
> include         /etc/ldap/schema/core.schema
> include         /etc/ldap/schema/cosine.schema
> include         /etc/ldap/schema/nis.schema
> include         /etc/ldap/schema/inetorgperson.schema
> include         /etc/ldap/schema/openldap.schemaµ

that is all you need, but you should change the sequence,
1. core.schema
2. cosine.schema
3. inetorgperson.schema
4. nis.schema

-Dieter

--
--
Dieter Kluenter | Systemberatung
Mobil: 0176.511
http://www.dkluenter.de




--
Kind regards,

J. Kellen

==============================
John Kellen
IT Manager
==============================
Free University Brussels        -       VUB
Dep. Biostatistics & Medical Informatics  
Laarbeeklaan 103, B-1090 Jette Belgium    
Voice: 32(2)4774426 Fax: 32(2)4774000
Email: john.kellen@vub.ac.be              
==============================