summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_auth.c
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:37:52 -0400
commitd317aeeeffca33aa79ae5ce0a5692d54970ffaf6 (patch)
tree2178b1dcc318a5e773e03eaa29d57f8bfaa082e0 /src/providers/ldap/ldap_auth.c
parentd015bbda295ad323fcd24ec34612b891af61b8f4 (diff)
downloadsssd-d317aeeeffca33aa79ae5ce0a5692d54970ffaf6.tar.gz
sssd-d317aeeeffca33aa79ae5ce0a5692d54970ffaf6.tar.xz
sssd-d317aeeeffca33aa79ae5ce0a5692d54970ffaf6.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.
Diffstat (limited to 'src/providers/ldap/ldap_auth.c')
-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 533db8e22..bddfba8c0 100644
--- a/src/providers/ldap/ldap_auth.c
+++ b/src/providers/ldap/ldap_auth.c
@@ -800,6 +800,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;
}