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

Re: Error 53: operation not permitted within namingContext



>
> Hi,
>
> I'm running OpenLDAP 2.2.8 on FreeBSD 5.2.1 with PostgreSQL 7.4.2. I've
> used  this HOWTO: http://www.samse.fr/GPL/ldap_pg/HOWTO/
>
> When I add this information the the database:
>
> --
> dn: dc=thekrofties,dc=net
> objectclass: dcObject
> objectclass: organization
> o: thekrofties
> dc: thekrofties
>
> dn: cn=Manager,dc=thekrofties,dc=net
> objectclass: organizationalRole
> cn: Manager
> --
>
> I get the following error with slapd debugging mode:
>
> oc_check_allowed type "modifyTimestamp"
>   backsql_add(): cannot determine objectclass of entry -- aborting

One of the entries you're adding has an objectClass which is not mapped
into a corresponding set of rules in ldap_oc_mappings.  Please carefully
read

http://www.openldap.org/faq/data/cache/978.html

and slapd-sql(5) man page for further details on how to do it.
Note that if you intend to load an arbitrary valid LDIF file
into your RDBMS with back-sql you'll encounter serious trouble
unless you carefully read and uinderstand these documents and
find out a reliable and deterministic way to univoquely map
entries into RDBMS tables.

p.

> send_ldap_result: conn=0 op=1 p=3
> send_ldap_result: err=53 matched="" text="operation not permitted within
>  namingContext"
> send_ldap_response: msgid=2 tag=105 err=53
>
> This is my slapd.conf:
>
> --
> database        sql
> suffix          "dc=thekrofties,dc=net"
> rootdn          "cn=Manager,dc=thekrofties,dc=net"
> rootpw          *******
> dbname          pg_ldap
> dbuser          pg_ldap
> dbpasswd        pg_ldap
> subtree_cond    "ldap_entries.dn LIKE CONCAT('%',?)"
> insentry_query  "INSERT INTO ldap_entries (dn,oc_map_id,parent,keyval)
> VALUES  (?
> ,?,?,?)"
> has_ldapinfo_dn_ru      no
> --



-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it