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

Postgresql And openLDAP working fine... but

Title: Gareth Stationery
I can get the system working fine with an example schema - or a suggested one,
but trying to get it to use a different one makes it fall over.
ldapadd -xv -f db_data
dn: dc=ldap,dc=thermeoneurope,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
dc: thermeoneurope
o: Thermeon Europe
description: Thermeon Europe Domain
ldap_initialize( <DEFAULT> )
add objectClass:
add dc:
add o:
        Thermeon Europe
add description:
        Thermeon Europe Domain
adding new entry "dc=ldap,dc=thermeoneurope,dc=com"
ldap_add: Unknown error
        additional info: SQL-backend error
ldif_record() = 80
SLAPD -d1 output (relevant lines):
==>backsql_add(): adding entry 'dc=ldap,dc=thermeoneurope,dc=com'
backsql_add(): cannot determine objectclass of entry -- aborting
the slapd.conf has included:
include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/nis.schema
and all the files are there and accessible.
The ldap add works fine if i don't specify the objectClasses like that,
but i don't understand why it shouldn't work given examples of it working
with exactly that data.
In all previous examples the structure of the LDAP schema was in the createdb and
ensuing commands (i called the file db_meta.sql which includes how i have set out the
database ldap_attr_mappings)
Can anyone help me out please?
Gareth Kirwan
e-Card: www.carsplus.co.uk/e-Card/gbjk.shtml
Site: www.thermeoneurope.com
Thermeon Europe Ltd,
+44 (0) 1293 864303