svn commit: samba r21451 - in branches/SAMBA_4_0/source/auth/credentials: .

metze at samba.org metze at samba.org
Mon Feb 19 16:43:57 GMT 2007


Author: metze
Date: 2007-02-19 16:43:56 +0000 (Mon, 19 Feb 2007)
New Revision: 21451

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21451

Log:
if kerberos is requested ( -k yes ), we should use authentificated connections

metze
Modified:
   branches/SAMBA_4_0/source/auth/credentials/credentials.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/credentials/credentials.c
===================================================================
--- branches/SAMBA_4_0/source/auth/credentials/credentials.c	2007-02-19 14:43:31 UTC (rev 21450)
+++ branches/SAMBA_4_0/source/auth/credentials/credentials.c	2007-02-19 16:43:56 UTC (rev 21451)
@@ -238,6 +238,11 @@
 	if (cred->username_obtained >= CRED_SPECIFIED) {
 		return True;
 	}
+
+	if (cli_credentials_get_kerberos_state(cred) == CRED_MUST_USE_KERBEROS) {
+		return True;
+	}
+
 	return False;
 }
 



More information about the samba-cvs mailing list