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 objectClass: posixAccount objectClass: inetLocalMailRecipient objectClass: shadowAccount uid: aderaede sn: *********** givenName: Anouk cn: aderaede userPassword: {crypt}WZpdKybON0LAQ loginShell: /bin/csh uidNumber: 25556 gidNumber: 3294 homeDirectory: /u/aderaede gecos: *************** mail: ************* displayName: ***************
** 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µ*
Thanks J
"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
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,
- core.schema
- cosine.schema
- inetorgperson.schema
- nis.schema
-Dieter
--
Dieter Kluenter | Systemberatung Mobil: 0176.511 http://www.dkluenter.de
"John Kellen" jkellen@vub.ac.be writes:
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
Is this (with empty lines) your original ldif file?
[...]
> 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µ
You have included objectclass inetLocalMailRecipient, which is described in misc.schema, but you have neither added any attribute of this objectclass nor have you included misc.schema
-Dieter
Thx Dieter, that seemed to be the problem... objectclass inetLocalMailRecipient wasn't needed at all :/
2008/7/17 Dieter Kluenter dieter@dkluenter.de:
"John Kellen" jkellen@vub.ac.be writes:
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
Is this (with empty lines) your original ldif file?
[...]
> 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µ
You have included objectclass inetLocalMailRecipient, which is described in misc.schema, but you have neither added any attribute of this objectclass nor have you included misc.schema
-Dieter
-- Dieter Klünter | Systemberatung http://www.dkluenter.de GPG Key ID:8EF7B6C6
On Tuesday 15 July 2008 11:34:02 John Kellen wrote:
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 objectClass: posixAccount objectClass: inetLocalMailRecipient objectClass: shadowAccount uid: aderaede sn: *********** givenName: Anouk cn: aderaede userPassword: {crypt}WZpdKybON0LAQ loginShell: /bin/csh uidNumber: 25556 gidNumber: 3294 homeDirectory: /u/aderaede gecos: *************** mail: ************* displayName: ***************
** 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µ*
Thanks J
What is your problem? i see a common ldif, is it hard to look that objectclasses into the schemas directory? you could find in which file the objectclass is, im not sure if your problem is with > objectClass: inetLocalMailRecipient, that should be in misc.schema
openldap-technical@openldap.org