Getting user's DN from Active Directory by username using python-ldap
To get a user's DN from Active Directory by her username you can use the following python snippet I wrote this morning:
$ python get_dn_by_username.py myusername
Quite useful huh?!
$ python get_dn_by_username.py myusername
Quite useful huh?!