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

2005-07-18 Thread rh0dium
Hi all, I have a script which appears to work but it errors and the following output is given. My code is listed below.. Traceback (most recent call last): File ./ldap-nsc2.py, line 96, in ? truc.search() File ./ldap-nsc2.py, line 49, in search (result_type, result_data) =

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

2005-07-18 Thread Michael Ströder
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,