LDIF Generation using Python-LDAP

Michael Ströder michael at stroeder.com
Sat May 16 14:41:44 CEST 2009


Guruprasad wrote:
> Hi,
> I tried generating a LDIF file from a dictionary using 'ldif' module
> as illustrated in http://www.python-ldap.org/doc/html/ldif.html. But
> at the end of the LDIF data, I get a newline and a 'None', whereas
> there is no such thing in the result shown in that example. How to get
> rid of those unwanted characters. I am using Python-LDAP 2.3.5-1 on
> Debian Lenny.

Could you please post your code (in a short form) demonstrating the
issue? Note that there is a new-line after each entry record. But was
'None' is in your case is not clear to me.

Ciao, Michael.



More information about the python-ldap mailing list