ldap controls

2007-09-20 Thread Stefan Gohmann
Hello,

where could I find some examples or docs for using ldap controls with 
python-ldap?

Thanks.

Cheers
Stefan
-- 
Stefan Gohmann Entwicklung  [EMAIL PROTECTED]
Univention GmbHLinux 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/vse012070mrt/direct/01/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: ldap controls

2007-09-20 Thread 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?

In the source distribution:

Demo/page_control.py
Demo/ldapcontrols.py
Demo/matchedvalues.py

Ciao, Michael.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: ldap controls

2007-09-20 Thread 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.

Cheers,
Stefan
-- 
Stefan Gohmann Entwicklung  [EMAIL PROTECTED]
Univention GmbHLinux 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/vse012070mrt/direct/01/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: ldap controls

2007-09-20 Thread Stefan Gohmann
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 GmbHLinux 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/vse012070mrt/direct/01/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: ldap controls

2007-09-20 Thread Matej Vela
Stefan Gohmann <[EMAIL PROTECTED]> writes:

> Am Donnerstag, 20. September 2007 10:57 schrieb Michael Ströder:
>> In the source distribution:
>>
>> Demo/page_control.py
>> Demo/ldapcontrols.py
>> Demo/matchedvalues.py
>
> Ah, these files are not in the debian package. Thanks.

Actually, they're in the python-ldap-doc package, in
/usr/share/doc/python-ldap-doc/examples/.

Cheers,

Matej

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Python-LDAP-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev