summaryrefslogtreecommitdiff
path: root/src
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
parentd015bbda295ad323fcd24ec34612b891af61b8f4 (diff)
downloadsssd-d317aeeeffca33aa79ae5ce0a5692d54970ffaf6.tar.gz
sssd-d317aeeeffca33aa79ae5ce0a5692d54970ffaf6.tar.bz2
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')
-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 533db8e2..bddfba8c 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;
}