From ee87f8d64a5d522363bfa29478501dc523cc8816 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 4 Aug 2010 13:42:06 -0400 Subject: 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. --- src/providers/ldap/ldap_auth.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit