adpasswd.py: Pure Python Command line interface to change Active Directory Passwords via LDAP.
you need a config file.
config files can either be in the Current Working Directory, or in ~/
config files are always named .adpasswd.cfg and are INI style.
All of the options above MUST exist, and be configured properly for this to work.
Once you have a config file setup, then it's EASY to use:
adpasswd.py username [password]
you can call it with a password or not, if you don't you will be prompted for one.
you get NO OUTPUT (but successful return) if everything went well. (good for scripts!)
If things went wrong, you will be told about it.
Bug reports, etc please use launchpad: https://launchpad.net/adpasswd
ldaplib.py originally from firstname.lastname@example.org
Big thanks for doing all the hard work!
FYI: I no longer use this code in production, nor really maintain it. If you love/use or care about this code, feel free to adopt it or take over ownership.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.