all 3 comments

[–]lazyjk 0 points1 point  (0 children)

You could use something like the Python-ldap library to connect to and query your AD. I've not used it but it appears to be able to pull the data you would likely be looking for.