HI!
I have a problem splitting a DN with ldap_str2dn(). Actually I'm using
it from python-ldap but judging from the debug output there does not
seem to be an issue with passing the DN to the OpenLDAP API (see Python
console output below).
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.
Ciao, Michael.
-------------------------------- snip --------------------------------
Python console:
>>> ldap.set_option(ldap.OPT_DEBUG_LEVEL,65535)
>>> dn
'OID.0.2.262.1.10.7.20=1 + CN=DIR DATEV D12 1:PN, O=DATEV eG, C=DE'
>>> ldap.dn.str2dn(dn)
=> ldap_bv2dn(OID.0.2.262.1.10.7.20=1 + CN=DIR DATEV D12 1:PN, O=DATEV
eG, C=DE,0)
ldap_err2string
<= ldap_bv2dn(OID.0.2.262.1.10.7.20=1 + CN=DIR DATEV D12 1:PN, O=DATEV
eG, C=DE)=-4 Decoding error
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.5/site-packages/ldap/dn.py", line 50, in str2dn
return ldap.functions._ldap_function_call(_ldap.str2dn,dn,flags)
File "/usr/lib/python2.5/site-packages/ldap/functions.py", line 59,
in _ldap_function_call
result = func(*args,**kwargs)
ldap.DECODING_ERROR
>>>