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

Re: Problem with adding country attribute

Simon Gao wrote:

I am having problem with adding "c" country attribute.  The error I got is:

ldap_add: Internal (implementation specific) error (80)
        additional info: no structuralObjectClass operational attribute

The error message is correct but unclear. It notifies that there is no structuralObjectClass in your entry, but this test occurs too late. The structuralObjectClass attribute is generated from the objectClasses you provide, you don't need (nor you are allowed) to explicitly provide it. However, in your case, it couldn't be generated because your objectClass hierarchy is invalid: there's more than one structural objectClasses with invalid hierarchy relationship. More recent versions of OpenLDAP correctly issue a different error message. For example, 2.3.35:

ldap_add: Object class violation (65)
additional info: invalid structural object class chain (friendlyCountry/person)


Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it