ldap controls
Stefan Gohmann
gohmann at univention.de
Thu Sep 20 11:49:21 CEST 2007
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 gohmann at univention.de
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
More information about the python-ldap
mailing list