From 1244a97dbe900551b978b63cd07afe6cf4a61c60 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 27 Oct 2005 05:33:49 +0000 Subject: r11317: An ugly hack to setup the global gssapi_krb5_context early, when we have easy access to the event context. This stops Samba dead-locking against itself when the winbindd client tries to contact the KDC. Andrew Bartlett (This used to be commit 57f811115ed768ea1f170dcd71038398bf2ab6e9) --- source4/smbd/server.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source4/smbd') diff --git a/source4/smbd/server.c b/source4/smbd/server.c index 93399b15f3..41d6329b02 100644 --- a/source4/smbd/server.c +++ b/source4/smbd/server.c @@ -29,7 +29,10 @@ #include "lib/cmdline/popt_common.h" #include "system/dir.h" #include "system/filesys.h" +#include "system/kerberos.h" +/* For sepecifiying event context to GSSAPI below */ +#include "heimdal/lib/gssapi/gssapi_locl.h" /* recursively delete a directory tree @@ -236,6 +239,9 @@ static int binary_smbd_main(int argc, const char *argv[]) return 1; } + /* Hack to ensure that GSSAPI uses the right event context */ + gssapi_krb5_init_ev(event_ctx); + /* wait for events - this is where smbd sits for most of its life */ event_loop_wait(event_ctx); -- cgit