ldapsearch example in python-ldap?

Nico Grubert nicogrubert at gmail.com
Thu Nov 23 09:05:14 EST 2006


Hi there,

on a linux machine I am running this ldapsearch from the command line:

ldapsearch -x -h myldaphost.mydomain.com \
   -D "CN=ldapuser,CN=Users,DC=mydomain,DC=com" -w "secret" \
   -b "CN=ANYCOMPUTER,CN=Computers,DC=mydomain,DC=com"

How can I do this with python-ldap?

Regards,
    Nico



More information about the Python-list mailing list