summaryrefslogtreecommitdiff
path: root/source4/auth/kerberos
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2005-09-20 07:03:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:29 -0500
commitf9263dd1023499479d64be1eb1b5b04c15ca3ce6 (patch)
tree4ac8655eee12345e5c0662d044f8f324ac0a6fa7 /source4/auth/kerberos
parent5b02ee9b9d7037b385cf4f1c3eca81b28ff19690 (diff)
downloadsamba-f9263dd1023499479d64be1eb1b5b04c15ca3ce6.tar.gz
samba-f9263dd1023499479d64be1eb1b5b04c15ca3ce6.tar.bz2
samba-f9263dd1023499479d64be1eb1b5b04c15ca3ce6.zip
r10337: This grubby little hack is the implementation of a concept discussed
on the kerberos mailing lists a couple of weeks ago: Don't use DNS at all for expanding short names into long names. Using the 'override krb5_init_context' code already in the tree, this removes the DNS lag on a kerberos session setup/connection. Andrew Bartlett (This used to be commit de3ceab3d064a286e8662a2b9b62b212f0454156)
Diffstat (limited to 'source4/auth/kerberos')
-rw-r--r--source4/auth/kerberos/krb5_init_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/kerberos/krb5_init_context.c b/source4/auth/kerberos/krb5_init_context.c
index 2a8f0624da..a147a3699a 100644
--- a/source4/auth/kerberos/krb5_init_context.c
+++ b/source4/auth/kerberos/krb5_init_context.c
@@ -117,6 +117,11 @@ static void smb_krb5_debug_wrapper(const char *timestr, const char *msg, void *p
talloc_steal(parent_ctx, *smb_krb5_context);
talloc_free(tmp_ctx);
+
+ /* Set options in kerberos */
+
+ (*smb_krb5_context)->krb5_context->fdns = FALSE;
+
return 0;
}