2009/5/16 Guruprasad <[email protected]>:
> Hi,
>
> 2009/5/16 Michael Ströder <[email protected]>:
> <code>
> 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")
> resd["objectClass"].remove("organizationalPerson")
> resd["objectClass"].remove("inetOrgPerson")
> resd["objectClass"].remove("posixAccount")
> lw=ldif.LDIFWriter(sys.stdout)
> guru=lw.unparse(dn,resd)
> print guru
> </code>
>
> Is it some issue or am I making some mistakes with general usage of Python?
>
> Thank you.
>
> Regards,
> L.Guruprasad
>
My ldapsearch query returns only one record. I have written such a filter.
Regards,
Guruprasad
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables
unlimited royalty-free distribution of the report engine
for externally facing server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev