[SCM] Samba Shared Repository - branch v3-0-test updated - release-3-0-32-48-g98f3369

Günther Deschner gd at samba.org
Tue Oct 21 13:29:53 GMT 2008


The branch, v3-0-test has been updated
       via  98f3369e08f4d5bc759e93d36f3d67a3c057f40d (commit)
      from  cfdbe8a1f2057ad1a8886ca7445a812219648d19 (commit)

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


- Log -----------------------------------------------------------------
commit 98f3369e08f4d5bc759e93d36f3d67a3c057f40d
Author: Andreas Schneider <mail at cynapses.org>
Date:   Mon Oct 20 17:39:35 2008 +0200

    Delete the krb5 ccname variable from the PAM environment if set.
    
    If winbind sets the KRB5CCNAME variable it should unset it when
    the cache gets destroyed.

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

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


Changeset truncated at 500 lines:

diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c
index 85621f0..e36733c 100644
--- a/source/nsswitch/pam_winbind.c
+++ b/source/nsswitch/pam_winbind.c
@@ -1893,6 +1893,14 @@ out:
 		iniparser_freedict(d);
 	}
 
+	/*
+	 * Delete the krb5 ccname variable from the PAM environment
+	 * if it was set by winbind.
+	 */
+	if (ctx->ctrl & WINBIND_KRB5_AUTH) {
+		pam_putenv(pamh, "KRB5CCNAME");
+	}
+
 	_PAM_LOG_FUNCTION_LEAVE("pam_sm_close_session", pamh, ctrl, retval);
 	
 	return retval;


-- 
Samba Shared Repository


More information about the samba-cvs mailing list