Am Donnerstag, 20. September 2007 11:21 schrieb Stefan Gohmann: > Am Donnerstag, 20. September 2007 10:57 schrieb Michael Ströder: > > Stefan Gohmann wrote: > > > where could I find some examples or docs for using ldap controls with > > > python-ldap? > > > > Which particular controls are you interested in? > > I want to search for deleted objects, 1.2.840.113556.1.4.417. > > > In the source distribution: > > > > Demo/page_control.py > > Demo/ldapcontrols.py > > Demo/matchedvalues.py > > Ah, these files are not in the debian package. Thanks.
The following code works for me: lc1 = LDAPControl('1.2.840.113556.1.4.417',criticality=1) lo.search_ext_s(base,ldap.SCOPE_SUBTREE,filter,serverctrls=[lc1]) Cheers Stefan -- Stefan Gohmann Entwicklung [EMAIL PROTECTED] Univention GmbH Linux for your Business fon: +49 421 22 232- 0 Mary-Somerville-Str.1 28359 Bremen fax: +49 421 22 232-99 http://www.univention.de ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev