summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-08-04 13:42:06 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-08-04 14:38:07 -0400
commitc1eb6230473824f8b64f62139d86383715bebd4c (patch)
tree39436a6d65592289f42d937ae47e6ca0c557e9f4
parentecace49992943536ce794a87352060a9658eb25c (diff)
downloadsssd-c1eb6230473824f8b64f62139d86383715bebd4c.tar.gz
sssd-c1eb6230473824f8b64f62139d86383715bebd4c.tar.xz
sssd-c1eb6230473824f8b64f62139d86383715bebd4c.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;
}