I'm new to python. First off I'd like some advice on where to find modules for python that I can trust don't do anything malicious.

There seems to be a lot of modules availible for python but how do I know that they only do what they advertise they do without actually going through the code. Being a beginner in python reviewing the code doesn't seem viable. Seems to me like an ideal area to place malicious code.

Secondly and the main reason I'm hear. I'm looking for a module I can use to interact with active directory in both a windows and linux enviroment. Currently I'm using win32com in windows but that doesn't work in linux.

I have written a script in vb to read a text file of users and create the user in AD. It does various error checks to see if they exist etc and enables them and moves them to the correct OU if they do.

I now want to create that script in python so it can be run in linux by the sys admins wh use linux and so I can integrate with google apps api also, which I believe you use python for.

Any help appreciated.


Thank you for your input. The python-ldap module looks exactly like what I was looking for. Unfortunately the 32 the only version I could find on http://pypi.python.org was a 32-bit version and I required a 64-bit version.

I had to do a bit of diggin around to find a 64-bit version, I found it through this blog http://i.vshal.com/2010/11/python-ldap-on-windows-7-64-bit.html, which links to http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap


This article has been dead for over six months. Start a new discussion instead.