Prev: Cross-platform module that creates directory object with all fileattributes
Next: python namespace question
From: tekion on 13 Jul 2010 21:15 Hi, I know perl Net::LDAP could do a recursive search call to LDAP. What I am running into with Python LDAP on the search call is that I would l have to wait for the search to complete to get the result. Where as with Perl recursive search call, I would get the result (not the completed result) back while the search is still running. Does any know if we have something like this in Python LDAP module? Thanks.
From: Steven D'Aprano on 13 Jul 2010 23:43 On Tue, 13 Jul 2010 18:15:58 -0700, tekion wrote: > Hi, > I know perl Net::LDAP could do a recursive search call to LDAP. What I > am running into with Python LDAP on the search call is that I would l > have to wait for the search to complete to get the result. Where as > with Perl recursive search call, I would get the result (not the > completed result) back while the search is still running. Does any know > if we have something like this in Python LDAP module? Thanks. What Python LDAP module are you using? -- Steven
From: Michael Ströder on 15 Jul 2010 05:23
tekion wrote: > I know perl Net::LDAP could do a recursive search call to LDAP. I don't know perl's Net::LDAP and therefore I'm not sure what you mean with "recursive search call". Personally I'd associate that with recursively processing LDAP tree structure. > What I am running into with Python LDAP on the search call is that I would > l have to wait for the search to complete to get the result. Where as with > Perl recursive search call, I would get the result (not the completed > result) back while the search is still running. In case you're using http://www.python-ldap.org you're probably looking for the asynchronous search methods: http://www.python-ldap.org/doc/html/ldap.html#ldap.LDAPObject.search See general note: http://www.python-ldap.org/doc/html/ldap.html#sending-ldap-requests Ciao, Michael. |