Pretty sure I'm using the right one. The line from slapd.conf is:
suffix "dc=example,dc=com"
The ldif I'm trying to add is pretty simple too:
dn: ou=People,dc=example,dc=com changetype: add objectClass: organizationalUnit ou: People
The same thing happens when adding a person directly under dc=example,dc=com:
dn: cn=USERNAME,dc=example,dc=com changetype: add objectClass: inetOrgPerson givenName: USER sn: NAME cn: USERNAME
Could it be an issue with how the mappings are done in the testdb? I'm also seeing this in the log:
backsql_add("cn=USERNAME,dc=example,dc=com"): create procedure is not defined for structuralObjectClass "inetOrgPerson" - aborting
Thanks for taking a look.
On 12/16/2014 02:12 AM, Dieter Klünter wrote:
Am Mon, 15 Dec 2014 12:11:37 -0500 schrieb thelastknowngod tlkg.me@gmail.com:
Hey guys,
I'm getting an "operation not permitted within namingContext" error when trying to add an entry into a test environment using back-sql. I created the database using the backsql_create.sql,testdb_create.sql,testdb_data.sql, and testdb_metadata.sql files in the OpenLDAP source. I've also tried just using one of the entries in the testdb as a template. Still didn't work. Not sure where the issue is. If you guys can help point me in the right direction that would be awesome.
namingContext is the buzz word. It seems that your DN you want to create does'nt match the database suffix.
-Dieter