Re: how to write filter argumnt for search function of LDAPObject class

2008-03-10 Thread Michael Ströder
Yang Cheng Fu wrote:
> 
> I am trying to access windows Active directory by using python-ldap, but 
> I do not know how to write filter argument for search function.

 From http://python-ldap.sourceforge.net/doc/python-ldap/ldap-objects.html:

--- snip ---
The filterstr argument is a string representation of the filter to apply in 
the search.

See Also:

RFC 4515, Lightweight Directory Access Protocol (LDAP): String 
Representation of Search Filters.
--- snip ---

> search(base, scope [,filterstr='(objectClass=*)' [, attrlist=None [, 
> attrsonly=0]]]).
> 
> For example: A filter sting which based on RFC4515 
> (http://www.faqs.org/rfcs/rfc4515.html) is 
> "(&(objectclass=organizationalUnit)(c=*))".

Yupp. That's exactly the string you have to pass to method search() and its 
derivates as argument filterstr.

> From the docs of 
> python-ldap, the forms of the argument, ('cn=fred*') and 
> ('objectClass=*') can be found.

Ouch! The example filterstr values on 
http://python-ldap.sourceforge.net/doc/python-ldap/ldap-example.html are 
simply typos. Sorry for that.

Ciao, Michael.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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: how to write filter argumnt for search function of LDAPObject class

2008-03-10 Thread Yang Cheng Fu
Hello Michael,

Thanks for your help.

---
YANG ChengFu
Unix Administrator 
Gameloft -- Global Network Services (GNS)
* mailto:[EMAIL PROTECTED]
* +86(10)8260-7783 ext.8221

-Original Message-
From: Michael Ströder [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 10, 2008 4:11 PM
To: Yang Cheng Fu
Cc: [email protected]
Subject: Re: how to write filter argumnt for search function of LDAPObject class

Yang Cheng Fu wrote:
> 
> I am trying to access windows Active directory by using python-ldap, but 
> I do not know how to write filter argument for search function.

 From http://python-ldap.sourceforge.net/doc/python-ldap/ldap-objects.html:

--- snip ---
The filterstr argument is a string representation of the filter to apply in 
the search.

See Also:

RFC 4515, Lightweight Directory Access Protocol (LDAP): String 
Representation of Search Filters.
--- snip ---

> search(base, scope [,filterstr='(objectClass=*)' [, attrlist=None [, 
> attrsonly=0]]]).
> 
> For example: A filter sting which based on RFC4515 
> (http://www.faqs.org/rfcs/rfc4515.html) is 
> "(&(objectclass=organizationalUnit)(c=*))".

Yupp. That's exactly the string you have to pass to method search() and its 
derivates as argument filterstr.

> From the docs of 
> python-ldap, the forms of the argument, ('cn=fred*') and 
> ('objectClass=*') can be found.

Ouch! The example filterstr values on 
http://python-ldap.sourceforge.net/doc/python-ldap/ldap-example.html are 
simply typos. Sorry for that.

Ciao, Michael.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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: how to write filter argumnt for search function of LDAPObject class

2008-03-10 Thread Michael Ströder
Yang Cheng Fu wrote:
> 
> Thanks for your help.

Thanks for finding a bug in the docs.

Ciao, Michael.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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


Removing person names in python-ldap's source files

2008-03-10 Thread Michael Ströder
HI!

inspired by a presentation the Subversion guys gave (as Google tech talk) 
I'd like to remove all person names from the source code files. Instead 
authors/contributors are all listed in README.

I already removed *my* name from all the python modules it appeared in. Now 
I'd like to ask for the permission, especially by David, to remove all other 
person names from the files Modules/*.

Ciao, Michael.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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