From: Yang C. F. <Che...@ga...> - 2008-03-10 04:31:33
|
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 (http://www.faqs.org/rfcs/rfc4515.html) is "(&(objectclass=organizationalUnit)(c=*))". From the docs of python-ldap, the forms of the argument, ('cn=fred*') and ('objectClass=*') can be found. I’d like to know how to write the sting of "(&(objectclass=organizationalUnit)(c=*))" for search function. I am not sure where it is enough to answer my question, if you need more information, just ask. Thanks a lot ------- YANG ChengFu Unix Administrator Gameloft -- Global Network Services (GNS) * mailto:che...@ga... * +86(10)8260-7783 ext.8221 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. |