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

2008-03-09 Thread Yang Cheng Fu
Hello Chaos, Thanks a lot! --- YANG ChengFu Unix Administrator Gameloft -- Global Network Services (GNS) * mailto:[EMAIL PROTECTED] * +86(10)8260-7783 ext.8221 From: Chaos Eternal [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2008 2:10 PM To

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

2008-03-09 Thread Chaos Eternal
##here comes the translation: I'm using python-ldap to access Windows Active Directory, but I don't know howto write the 'filter' parameter in the function search of LDAPObject. Based upon RFC4515, I want the filter paramter to be "(&(objectclass=organizationalUnit)(c=*))". According to the manua

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

2008-03-09 Thread Yang Cheng Fu
我在用python-ldap来访问Windows Active directory, 但是不知道LDAPObject的search函数中的filter参数怎么写。我要写的参数是 "(&(objectclass=organizationalUnit)(c=*))"(基于RFC4515) search函数的格式如下: search(base, scope [,filterstr='(objectClass=*)' [, attrlist=None [, attrsonly=0]]]). 从python-ldap的文档中可以找到 ('cn=fred*')与('object

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

2008-03-09 Thread Chaos Eternal
hi, please write your question in chinese, i can help you translate it. On Mon, Mar 10, 2008 at 12:45 PM, Yang Cheng Fu <[EMAIL PROTECTED]> wrote: > Hi guys, > > > > I am trying to access windows Active directory by using python-ldap, but I > do not know how to write filter argument for search f

how to write filter argumnt for search function of LDAPObject class

2008-03-09 Thread Yang Cheng Fu
Hi guys, 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. search(base, scope [,filterstr='(objectClass=*)' [, attrlist=None [, attrsonly=0]]]). For example: A filter sting which based on RFC4515 (htt