1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

r14713: 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
This commit is contained in:
Andrew Bartlett 2006-03-25 11:30:06 +00:00 committed by Gerald (Jerry) Carter
parent 8566515a51
commit 78447333b0

View File

@ -978,6 +978,12 @@ _PUBLIC_ NTSTATUS gensec_set_target_hostname(struct gensec_security *gensec_secu
_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;
}