summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-09-16 23:57:01 +0800
committerKarolin Seeger <kseeger@samba.org>2009-10-20 15:00:19 +0200
commit909b7177421c39c352a7c56e67750be976f8d6b5 (patch)
tree6b275d738d88ada130112633cfe11d22a6e036d0 /nsswitch
parenta6c06024a836425ad155d9380a3e62ab069d2e1c (diff)
downloadsamba-909b7177421c39c352a7c56e67750be976f8d6b5.tar.gz
s3: Don't overwrite password in pam_winbind, subsequent pam modules might use the old password and new password.
Signed-off-by: Bo Yang <boyang@samba.org> Fix bug #6735. (cherry picked from commit 2a2779bb752d83ff51161a7e5d62ca21c4e6c909)
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 4a44248e8ea..35cbc3b17bb 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -3056,8 +3056,6 @@ int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
ret = winbind_chauthtok_request(ctx, user, pass_old,
pass_new, pwdlastset_update);
if (ret) {
- _pam_overwrite(pass_new);
- _pam_overwrite(pass_old);
pass_old = pass_new = NULL;
goto out;
}
@@ -3086,8 +3084,6 @@ int pam_sm_chauthtok(pam_handle_t * pamh, int flags,
member, cctype, 0,
&error, &info, &policy,
NULL, &username_ret);
- _pam_overwrite(pass_new);
- _pam_overwrite(pass_old);
pass_old = pass_new = NULL;
if (ret == PAM_SUCCESS) {