#include "smb_server/smb_server.h"
#include "system/filesys.h"
+/* For sepecifiying event context to GSSAPI below */
+#include "heimdal/lib/gssapi/gssapi_locl.h"
+
/*
called when the process model is selected
*/
static void single_model_init(struct event_context *ev)
{
+ /* Hack to ensure that GSSAPI uses the right event context */
+ gssapi_krb5_init_ev(ev);
}
/*
#include "smb_server/smb_server.h"
#include "system/filesys.h"
+/* For sepecifiying event context to GSSAPI below */
+#include "heimdal/lib/gssapi/gssapi_locl.h"
+
/*
called when the process model is selected
*/
DEBUG(0,("standard_accept_connection: tdb_reopen_all failed.\n"));
}
+ /* Hack to ensure that GSSAPI uses the right event context */
+ gssapi_krb5_init_ev(ev2);
+
/* Ensure that the forked children do not expose identical random streams */
set_need_random_reseed();
#include "smb_server/smb_server.h"
#include "mutex.h"
+/* For sepecifiying event context to GSSAPI below */
+#include "heimdal/lib/gssapi/gssapi_locl.h"
+
struct new_conn_state {
struct event_context *ev;
struct socket_context *sock;
d_ops.get_task_id = thread_get_task_id;
d_ops.log_task_id = thread_log_task_id;
- register_debug_handlers("thread", &d_ops);
+ register_debug_handlers("thread", &d_ops);
+
+ /* Hack to ensure that GSSAPI uses the right event context */
+ gssapi_krb5_init_ev(event_context);
}
#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
*/
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);