summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-08-04 13:42:06 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-10-08 19:51:16 -0400
commitee87f8d64a5d522363bfa29478501dc523cc8816 (patch)
tree18ce9c9f2ffdb2411ebaffbbe38b834e6561014f
parent5e26273e53adbdb4ab65b6c9259240219587154a (diff)
downloadsssd-ee87f8d64a5d522363bfa29478501dc523cc8816.tar.gz
sssd-ee87f8d64a5d522363bfa29478501dc523cc8816.tar.xz
sssd-ee87f8d64a5d522363bfa29478501dc523cc8816.zip
Fix chpass operations with LDAP provider
The initial verification of the old password was returning an error because we were not explicitly setting dp_err to DP_ERR_SUCCESS and it was initialized earlier in the function to DP_ERR_FATAL.
-rw-r--r--src/providers/ldap/ldap_auth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/providers/ldap/ldap_auth.c b/src/providers/ldap/ldap_auth.c
index 63719c073..b05e3075c 100644
--- a/src/providers/ldap/ldap_auth.c
+++ b/src/providers/ldap/ldap_auth.c
@@ -865,6 +865,7 @@ static void sdap_auth4chpass_done(struct tevent_req *req)
DEBUG(9, ("Initial authentication for change password operation "
"successful.\n"));
state->pd->pam_status = PAM_SUCCESS;
+ dp_err = DP_ERR_OK;
goto done;
}