Howard Chu wrote:
It appears to be LDAPv2 format. Did you specify that in the flags you passed to ldap_str2dn() ?
Good catch! Michael, as a quick hint: you can use libraries/libldap/dntest to quickly check (schema unaware) DN parsing. In your case,
bash-3.00$ ./libraries/libldap/dntest 'OID.0.2.262.1.10.7.20=1 + CN=DIR DATEV D12 1:PN, O=DATEV eG, C=DE'
(no output)
bash-3.00$ ./libraries/libldap/dntest 'OID.0.2.262.1.10.7.20=1 + CN=DIR DATEV D12 1:PN, O=DATEV eG, C=DE' V2 ldap_rdn2str() = "0.2.262.1.10.7.20=1+CN=DIR DATEV D12 1:PN" ldap_rdn2str() = "O=DATEV eG" ldap_rdn2str() = "C=DE" ...
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 ---------------------------------------