From: Stefan G. <go...@un...> - 2007-09-20 09:49:19
|
Am Donnerstag, 20. September 2007 11:21 schrieb Stefan Gohmann: > Am Donnerstag, 20. September 2007 10:57 schrieb Michael Str=F6der: > > 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 =3D LDAPControl('1.2.840.113556.1.4.417',criticality=3D1) lo.search_ext_s(base,ldap.SCOPE_SUBTREE,filter,serverctrls=3D[lc1]) Cheers Stefan =2D-=20 Stefan Gohmann Entwicklung go...@un... 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 |