[python-ldap] Ldif parser bug?

Petr Spacek pspacek at redhat.com
Wed Sep 30 11:55:17 CEST 2015

On 30.9.2015 10:30, Michael Ströder wrote:
> Tobias Diaz Diaz-Chiron wrote:
>> Ok, thank you... I'm working on that...
>> My LDIF is obtained from a telecom server that send users data in ldif
>> format. In the ldif some DNs has spaces and some not...
> Thinking about this FILL some more I wonder how leading spaces in attribute
> values shall be handled. This might get complex and I'm a bit concerned of
> interop issues.
> First try to fix your specific case in LDIFParser._next_key_and_value()
> probably a *appending* another specific elif clause.

I do not have reference to spec at hand but I believe that all values starting
or ending with whitespace should be base64-encoded to avoid ambiguity.

Petr Spacek  @  Red Hat

More information about the python-ldap mailing list