svn commit: samba r14713 - in branches/SAMBA_4_0/source/auth/gensec: .

abartlet at samba.org abartlet at samba.org
Sat Mar 25 11:30:07 GMT 2006


Author: abartlet
Date: 2006-03-25 11:30:06 +0000 (Sat, 25 Mar 2006)
New Revision: 14713

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

Log:
For testing, it is sometimes useful to specify a hostname for kerberos
that differs from the hostname the connect() uses.

In particular, this helps in running Kerberos tests in 'make test'.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/auth/gensec/gensec.c


Changeset:
Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c
===================================================================
--- branches/SAMBA_4_0/source/auth/gensec/gensec.c	2006-03-25 10:59:20 UTC (rev 14712)
+++ branches/SAMBA_4_0/source/auth/gensec/gensec.c	2006-03-25 11:30:06 UTC (rev 14713)
@@ -978,6 +978,12 @@
 
 _PUBLIC_ const char *gensec_get_target_hostname(struct gensec_security *gensec_security) 
 {
+	/* We allow the target hostname to be overriden for testing purposes */
+	const char *target_hostname = lp_parm_string(-1, "gensec", "target_hostname");
+	if (target_hostname) {
+		return target_hostname;
+	}
+
 	if (gensec_security->target.hostname) {
 		return gensec_security->target.hostname;
 	}



More information about the samba-cvs mailing list