The branch, v3-4-test has been updated
       via  2a2779bb752d83ff51161a7e5d62ca21c4e6c909 (commit)
      from  ff9355149c9af7ca0e31b36690b270a03cb787fc (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-4-test


- Log -----------------------------------------------------------------
commit 2a2779bb752d83ff51161a7e5d62ca21c4e6c909
Author: Bo Yang <[email protected]>
Date:   Wed Sep 16 23:57:01 2009 +0800

    s3: Don't overwrite password in pam_winbind, subsequent pam modules might 
use the old password and new password.
    
    Signed-off-by: Bo Yang <[email protected]>
    
    Fix bug #6735.

-----------------------------------------------------------------------

Summary of changes:
 nsswitch/pam_winbind.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)


Changeset truncated at 500 lines:

diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index 4a44248..35cbc3b 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) {


-- 
Samba Shared Repository

Reply via email to