Re: LDIF Generation using Python-LDAP

2009-05-16 Thread Michael Ströder
Guruprasad wrote: > Hi, > 2009/5/16 Michael Ströder : >> Guruprasad wrote: >>> 2009/5/16 Michael Ströder : 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

Re: LDIF Generation using Python-LDAP

2009-05-16 Thread Guruprasad
Hi, 2009/5/16 Michael Ströder : > Guruprasad wrote: >> 2009/5/16 Michael Ströder : >>> 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 g

Re: LDIF Generation using Python-LDAP

2009-05-16 Thread Michael Ströder
Guruprasad wrote: > My ldapsearch query returns only one record. I have written such a filter. Sorry, my crystal ball is a bit blurry. I can't help without really knowing what you're trying to achieve. Ciao, Michael. --

Re: LDIF Generation using Python-LDAP

2009-05-16 Thread Michael Ströder
Guruprasad wrote: > 2009/5/16 Michael Ströder : >> 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 >>> t

Re: LDIF Generation using Python-LDAP

2009-05-16 Thread Guruprasad
2009/5/16 Guruprasad : > Hi, > > 2009/5/16 Michael Ströder : > >        res_type, result_data=l.result(res_id,0) >        if (result_data==[]): >            break >        dn=result_data[0][0] >        resd=result_data[0][1] >        resd["objectClass"].remove("inetLocalMailRecipient") >        

Re: LDIF Generation using Python-LDAP

2009-05-16 Thread Guruprasad
Hi, 2009/5/16 Michael Ströder : > 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

Re: LDIF Generation using Python-LDAP

2009-05-16 Thread Michael Ströder
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. Ho

LDIF Generation using Python-LDAP

2009-05-16 Thread Guruprasad
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 unwant