I wrote an internal app using the third party package
django-auth-ldap to authenticate users against my Active Directory instance. (this works!)
Users keep trying to reset their AD/LDAP password from the admin page (“change password”), but this does nothing except set a password on the account stub.(the ldap account is used to authenticate the user, it only checks taht a local account with the same username is present, all other checks are done via the ldap filter (I’m using django’s built-in
User with a one to one
Profile for other attributes, no custom user here).
It looks like I need to change the behavior of django.contrib.auth.view’s
change_password() function, but i don’t know how to do that without just changing the code in the django install(obviously not a good move). when i do change it there, i insert a try:execpt: after the save() call, so i know in theory this works, but how can i do this for the admin site properly? (aka in a way that doesn’t break when i upgrade django).
(edited for specificity)