summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_pam.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-01-06 00:27:34 +0000
committerAndrew Bartlett <abartlet@samba.org>2004-01-06 00:27:34 +0000
commit523a4ddd5fb851d86b50238ca4d22b98c2159c50 (patch)
treee60f26488ff311677a85209f9da2a6e129e8f6ec /source3/nsswitch/winbindd_pam.c
parenteb1aa6a2cc0331cbbbc5ea466e5695e4df39e6ee (diff)
downloadsamba-523a4ddd5fb851d86b50238ca4d22b98c2159c50.tar.gz
samba-523a4ddd5fb851d86b50238ca4d22b98c2159c50.tar.bz2
samba-523a4ddd5fb851d86b50238ca4d22b98c2159c50.zip
(merge from 3.0)
Try to keep vl happy - shorten some of these lines. -- Grumble... grumble... fix the build... -- Show the sid type in name->sid translatons in a way that can be easily understood by humans. Andrew Bartlett (This used to be commit c5d1e2112baa7d87cd6b9f0855c2fd8b006af01d)
Diffstat (limited to 'source3/nsswitch/winbindd_pam.c')
-rw-r--r--source3/nsswitch/winbindd_pam.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/nsswitch/winbindd_pam.c b/source3/nsswitch/winbindd_pam.c
index 801f36df79..dba2fe8ba4 100644
--- a/source3/nsswitch/winbindd_pam.c
+++ b/source3/nsswitch/winbindd_pam.c
@@ -512,11 +512,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);