From 8cfc9fb8e53b404c412892515dcf8a96ab9c5963 Mon Sep 17 00:00:00 2001 From: Nikolai Kristiansen Date: Mon, 4 Aug 2014 13:45:37 +0200 Subject: [PATCH] Persist in LDAP too --- README | 2 +- main/forms.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README b/README index b1b5b28..2951df6 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ # Installation - apt-get install libldap2-dev python-dev libmysqlclient-dev libsasl2-dev + apt-get install libldap2-dev python-dev libmysqlclient-dev libsasl2-dev libldap2-dev libssl-dev virtualenv venv . venv/bin/activate pip install -r requirements.txt diff --git a/main/forms.py b/main/forms.py index 60e9c57..ed6dbef 100644 --- a/main/forms.py +++ b/main/forms.py @@ -28,7 +28,8 @@ class LDAPSetPasswordForm(SetPasswordForm): # Lookup the Ldap user with the identical username (1-to-1). self.user = LdapUser.objects.get(username=self.user.username) - #self.user.set_password(self.cleaned_data['new_password1']) + # set ldap password + self.user.set_password(self.cleaned_data['new_password1']) if commit: self.user.save()