[python-win32] uAnn: active directory module
Tim Golden
mail at timgolden.me.uk
Mon Mar 12 15:10:40 CET 2007
After a hiatus of about 18 months, I've finally done a bit of work on my
active_directory module. There's nothing too radical, but I hope I've
made things a bit easier for some people. Treat this release as a bit
experimental, but it is functioning ok for me.
One area I'm very weak in is multiple domains / trees / forests,
basically because we don't use them, so it's hard to test things.
http://timgolden.me.uk/python/active_directory.html
Principal Changes:
+ I've added a load more text on the web page
+ There are module and object-level convenience functions
for finding a user, group, computer, ou and public folder. I hope this
will meet a lot of simple needs which people have. Suggestions for
further convenience functions will be favourably received!
+ Many of the AD object properties are wrapped, making reading them
easier. I intend to do something to make writing back easier, but
haven't yet. (You can already set properties if you know what you're doing).
+ There's an experimental .walk method on the _AD_group object, which
mimics the os.walk interface, returning group, groups, users for each
group in the list. This was inspired by some code which Dirk Hagemann
sent me absolutely ages ago. (Sorry!)
+ The AD_object call is now a factory function, doing intelligent
things with either a path string ("LDAP://...") or an existing
AD COM object.
As it happens, I don't have all that much use for this module myself, so
I'm very grateful to everyone who comes up with use-cases and "Is it
possible to...?" questions which spur me on to better understanding.
TJG
More information about the Python-win32
mailing list