The branch, v3-6-test has been updated
       via  64732d3 s3-winbind: Do not delete an existing valid credential 
cache.
      from  f14cd41 WHATWNEW: Start release notes for Samba 3.6.19.

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


- Log -----------------------------------------------------------------
commit 64732d3d317be8bb3b3579455ce3b3d5c81b6ad8
Author: Andreas Schneider <[email protected]>
Date:   Thu Jul 11 13:44:53 2013 +0200

    s3-winbind: Do not delete an existing valid credential cache.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=9994
    
    Thanks to David Woodhouse <[email protected]>.
    
    Reviewed-by: Günther Deschner <[email protected]>
    
    Autobuild-User(master): Andreas Schneider <[email protected]>
    Autobuild-Date(master): Mon Jul 15 12:48:46 CEST 2013 on sn-devel-104
    
    (cherry picked from commit 0529b59fbe3f96509893fc4e93a75d6928b5a532)

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

Summary of changes:
 source3/winbindd/winbindd_pam.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index a966202..125e393 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -668,6 +668,14 @@ static NTSTATUS winbindd_raw_kerberos_login(TALLOC_CTX 
*mem_ctx,
        return NT_STATUS_OK;
 
 failed:
+       /*
+        * Do not delete an existing valid credential cache, if the user
+        * e.g. enters a wrong password
+        */
+       if ((strequal(krb5_cc_type, "FILE") || strequal(krb5_cc_type, "WRFILE"))
+           && user_ccache_file != NULL) {
+               return result;
+       }
 
        /* we could have created a new credential cache with a valid tgt in it
         * but we werent able to get or verify the service ticket for this


-- 
Samba Shared Repository

Reply via email to