Search-Filter for LDAP (MS Active Directory)

Dirk Hagemann usenet at mail-2-me.com
Thu Oct 14 09:47:31 EDT 2004


Hi!

I asked here a few weeks ago the same question but the answer of Tim
Golden didn't really help yet.

I'd like to know how to set up a query for all computer-accounts in a
special part of Active Directory by using LDAP.

Example:
all computers with a name like "ABC*" at "..., ou=Production,
DC=business,DC=company,DC=com"
>From these computers I want to get their OS, Service Pack and some
other information.
The difficulty is, the computers are in several OUs so I can't just
get through one LDAP-Path and the names of some OUs could change from
one day to another...

I read this RFC (http://www.rfc-editor.org/rfc/rfc2254.txt), but don't
know how to use this in python.

Kind regards
Dirk Hagemann



More information about the Python-list mailing list