Python ldap pointers for a newbie - Actually just trying to decifer the error..

Michael Ströder michael at stroeder.com
Mon Jul 18 20:08:30 CEST 2005


rh0dium wrote:
> 
> ldap_result_id = cnx.search_s(baseDN, searchScope, searchAttrs, retrieveAttrs)

You are already using the synchronous search method which indeed return
the search results.

So this should read:

result_data=cnx.search_s(baseDN,searchScope,searchAttrs,retrieveAttrs)

> result_type, result_data = cnx.result(ldap_result_id, 0)

You don't need this if you just want to use synchronous search method.

Ciao, Michael.



More information about the Python-list mailing list