Michael Ströder wrote:
>>
>>> I am working on a filter that makes Thunderbirds LDIF-Output
>>> importable to OpenLDAP. It works quite fine except for names
>>> that include ",". OpenLDAP dislikes the output that is produced
>>> like :
>>>
>>> dn: cn=Lehmann\, Veronika,dc=Adressbuch,dc=christoph
>> Escaping characters is used by some LDAP servers, not all of them, but is 
>> not conform to LDIF.
> 
> Yves, that sounds wrong to me.
> 
> According to RFC 4514 a comma within a RDN value has to either be
> escaped with \ or converted to hex-escaped value.  That's what function
> ldap.dn.escape_dn_chars() is for. And you can directly use the result in
> LDIF.

Michael is right here, even though there is no escaping in LDIF itself, you 
can use a backslash in an LDIF file, and RFC 4514 defines the backslash 
syntax to escape some characters.

Sorry to mislead you Christoph.

-- 
Yves.
http://www.sollers.ca/


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev

Reply via email to