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

Re: Invalid manager attribute when in form 1.3.6.1.4.1.1466.0=#04024869, O=Test, C=GB



On 05/23/2013 10:19 AM, Soulier, Marcel wrote:
Hi,

I am trying to import the following ldif file into openldap and get the
error message “manager: value #0 invalid per syntax”.

test.ldif:

dn: cn=test,o=users,dc=example,dc=com

objectClass: top

objectClass: person

cn: test

manager: 1.3.6.1.4.1.1466.0=#04024869,O=Test,C=GB

Console output:

adding new entry "cn=test,o=users,dc=example,dc=com"

ldap_add: Invalid syntax (21)

                 additional info: manager: value #0 invalid per syntax

According to the cosine.schema the value of the manager attribute should
have the EQUALITY distinguishedNameMatch, SYNTAX
1.3.6.1.4.1.1466.115.121.1.12

The value “1.3.6.1.4.1.1466.0=#04024869,O=Test,C=GB” is taken from the
examples provided for DN in rfc2252 and works fine in open-ds. So I
would expect it to work in openldap as well.

What am I missing?

OID 1.3.6.1.4.1.1466.0 is not defined in any of OpenLDAP's distributed schema files, nor hardcoded anywhere. OpenLDAP does strong schema adherence checks, so it is not possible to add a DN made of undefined attributes.

p.

--
Pierangelo Masarati
Associate Professor
Dipartimento di Ingegneria Aerospaziale
Politecnico di Milano