Hi,
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
I'm running OpenLDAP 2.3.30. Here is related parts:
street: 123 Short St. l: Big Town st: Some State c: US ....
objectClass: friendlyCountry objectClass: Country objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: shadowAccount objectClass: top objectClass: inetOrgPersonAccount objectClass: inetLocalMailRecipient
......
Is there something I need to add or change?
Simon
Simon Gao gao@schrodinger.com writes:
Hi,
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
I'm running OpenLDAP 2.3.30. Here is related parts:
street: 123 Short St. l: Big Town st: Some State c: US
and what is the distinguished name like?
objectClass: friendlyCountry objectClass: Country objectClass: person objectClass: organizationalPerson objectClass: inetOrgPerson objectClass: posixAccount objectClass: shadowAccount objectClass: top objectClass: inetOrgPersonAccount objectClass: inetLocalMailRecipient
You are mixing object classes,a person can never be a country nor a friendly country,
-Dieter
Simon Gao wrote:
Hi,
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)
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it --------------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Email: pierangelo.masarati@sys-net.it ---------------------------------------
openldap-software@openldap.org