diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-05 05:07:59 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-05 05:07:59 +0000 |
commit | 687aececa66c2c1ba8e5bc3127d8ca79a97436d1 (patch) | |
tree | 2ef7601d3965654789de06ca47a40a1c434ad6a1 /source/nsswitch | |
parent | 3d91b0a0060f18d49b2fdd9f93ef310e2ea7779d (diff) | |
download | samba-687aececa66c2c1ba8e5bc3127d8ca79a97436d1.tar.gz samba-687aececa66c2c1ba8e5bc3127d8ca79a97436d1.tar.xz samba-687aececa66c2c1ba8e5bc3127d8ca79a97436d1.zip |
Grumble... grumble... fix the build...
Diffstat (limited to 'source/nsswitch')
-rw-r--r-- | source/nsswitch/winbindd_pam.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source/nsswitch/winbindd_pam.c b/source/nsswitch/winbindd_pam.c index 196ceea9a06..31698b47982 100644 --- a/source/nsswitch/winbindd_pam.c +++ b/source/nsswitch/winbindd_pam.c @@ -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); |