summaryrefslogtreecommitdiff
path: root/nsswitch/pam_winbind.c
diff options
context:
space:
mode:
authorBo Yang <boyang@samba.org>2009-09-16 22:03:57 +0800
committerBo Yang <boyang@samba.org>2009-09-16 22:03:57 +0800
commit89ed2af69d6d6adcaf64d4c576ee8ba41b27b8a5 (patch)
tree0ca8100b63413b98d698b92a24b4eeceb0619b8f /nsswitch/pam_winbind.c
parent45cebf7f113c3ff3c1b029c591dbbbb879b992f8 (diff)
downloadsamba-89ed2af69d6d6adcaf64d4c576ee8ba41b27b8a5.tar.gz
samba-89ed2af69d6d6adcaf64d4c576ee8ba41b27b8a5.tar.bz2
samba-89ed2af69d6d6adcaf64d4c576ee8ba41b27b8a5.zip
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>
Diffstat (limited to 'nsswitch/pam_winbind.c')
-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 4e84574d25..324bede9ea 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -3059,8 +3059,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;
}
@@ -3089,8 +3087,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) {