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
"John Kellen" <jkellen@vub.ac.be> writes:this objectclasses are all included in inetorgperson.schema
> 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 nis.schema
> objectClass: posixAccount
> objectClass: inetLocalMailRecipient
> objectClass: shadowAccount
that is all you need, but you should change the sequence,
> 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Â
1. core.schema
2. cosine.schema
3. inetorgperson.schema
4. nis.schema
-Dieter
--
--
Dieter Kluenter | Systemberatung
Mobil: 0176.511
http://www.dkluenter.de