Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

Openldap cannot map structuralObjectClass

Discussion in 'Database' started by Dreamsword, Aug 16, 2013.

  1. Dreamsword

    Dreamsword Guest

    Hey guys


    I compiled OpenLDAP with --enable-sql, I have setup the lda.conf, slapd.conf and both the odbc config files.


    It starts the slapd no problem.


    But as soon as I try to add an entry (via phpldapadmin) it gives me -


    Could not add the object to the LDAP server.

    LDAP said:

    Server is unwilling to perform

    Error number:

    0x35 (LDAP_UNWILLING_TO_PERFORM)

    Description:

    The LDAP server refused to perform the operation.


    I then started slapd with slapd –d 1


    And I see this error in the log when I try to add an item


    520cbd45 >>> dnPrettyNormal: <dc=ond>

    520cbd45 <<< dnPrettyNormal: <dc=ond>, <dc=ond>

    520cbd45 ==>backsql_add("dc=ond")

    520cbd45 oc_check_required entry (dc=ond), objectClass "domain"

    520cbd45 oc_check_allowed type "dc"


    (Log in to hide this advertisement)


    520cbd45 oc_check_allowed type "objectClass"

    520cbd45 oc_check_allowed type "structuralObjectClass"

    520cbd45 backsql_add("dc=ond"): cannot map structuralObjectClass "domain" -- aborting

    520cbd45 send_ldap_result: conn=1002 op=1 p=3

    520cbd45 send_ldap_response: msgid=2 tag=105 err=53

    ber_flush2: 58 bytes to sd 10

    520cbd45 <==backsql_add("dc=ond"): 53 "operation not permitted within namingContext"

    I am using the database that came with openldap

    But for the life of me I have no idea what the cause of this is and how I will be able to fix it.

    Any suggestions?
     

Share This Page