1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

Grumble... grumble... fix the build...

(This used to be commit 687aececa66c2c1ba8e5bc3127d8ca79a97436d1)
This commit is contained in:
Andrew Bartlett 2004-01-05 05:07:59 +00:00
parent db44ffd3ac
commit c88d6d87ef

View File

@ -513,11 +513,13 @@ enum winbindd_result winbindd_pam_chauthtok(struct winbindd_cli_state *state)
goto done;
}
if (!NT_STATUS_IS_OK(result = cli_samr_chgpasswd_user(hnd->cli, mem_ctx,
user, newpass, oldpass))) {
DEBUG(1, ("password change failed for user %s/%s\n", domain,
user));
}
if (!cli_oem_change_password(hnd->cli, user, newpass, oldpass)) {
DEBUG(1, ("password change failed for user %s/%s\n", domain,
user));
result = NT_STATUS_WRONG_PASSWORD;
} else {
result = NT_STATUS_OK;
}
done:
state->response.data.auth.nt_status = NT_STATUS_V(result);