Pretty useful python snippet to get user's dn (&) from Active Directory
dangtrinh.com