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

Re: Decoding error when splitting a DN with ldap_str2dn()



Michael Ströder wrote:
Howard Chu wrote:
Michael Ströder wrote:
Any clue what's wrong with this DN?

OID.0.2.262.1.10.7.20=1 + CN=DIR DATEV D12 1:PN, O=DATEV eG, C=DE

BTW: Removing the spaces around , and + does not help either.
It appears to be LDAPv2 format.

Because of prefix "OID."? It should be simply like this?

0.2.262.1.10.7.20=1 + CN=DIR DATEV D12 1:PN, O=DATEV eG, C=DE

Yes, the "OID." prefix was only part of RFC1779, LDAPv2. It wasn't part of RFC2253; it's been gone for a long time.


Did you specify that in the flags you passed to ldap_str2dn() ?

No. Will try to extend python-ldap C Lib wrapper...

BTW: This is a probably quite old public OpenLDAP server:

ldap://ldap.nrca-ds.de

Judging from the supportedFeatures in the rootDSE, it may be 2.0.

The connection is indeed a LDAPv3 connection. Will try to contact them
to fix that broken installation.

Ciao, Michael.

-- -- Howard Chu Chief Architect, Symas Corp. http://www.symas.com Director, Highland Sun http://highlandsun.com/hyc/ Chief Architect, OpenLDAP http://www.openldap.org/project/