Provide a simple self-service UI & script to sync passwords on a Samba4 AD DC with Google Apps.
This solves the issue of syncing Samba AD DC passwords to Google Apps. Unfortunately, Google Directory Sync is challenging to configure with Samba, and the classic "unix password sync" and "passwd program" options in Samba 4 no longer work.
=== User workflow:
- Sign-in to webapp with Google Apps domain credentials
- Change password in web app
- Web app updates Google (via Directory API) and Samba AD DC.
===
How to install:
pip install Flask-OAuthlib
- Install the app! You can roughly do something like: adduser password-change-user chsh -s /bin/false password-change-user cd /home/password-change-user/ git clone THIS_REPO
- Configure apache. You can add something like this to a VirtualHost.