#include "auth.h"
#include "../lib/tsocket/tsocket.h"
+#include "param/param.h"
+#include "../lib/messaging/messaging.h"
+
#undef DBGC_CLASS
#define DBGC_CLASS DBGC_AUTH
auth_methods *auth_method;
struct auth_serversupplied_info *server_info = NULL;
struct dom_sid sid = {0};
+ struct imessaging_context *msg_ctx = NULL;
+ struct loadparm_context *lp_ctx = NULL;
if (user_info == NULL || auth_context == NULL || pserver_info == NULL) {
return NT_STATUS_LOGON_FAILURE;
frame = talloc_stackframe();
+ if (lp_auth_event_notification()) {
+ lp_ctx = loadparm_init_s3(frame, loadparm_s3_helpers());
+ msg_ctx = imessaging_client_init(
+ frame, lp_ctx, global_event_context());
+ }
+
*pauthoritative = 1;
DEBUG(3, ("check_ntlm_password: Checking password for unmapped user [%s]\\[%s]@[%s] with the new password interface\n",
sid = (struct dom_sid) {0};
}
- log_authentication_event(NULL, NULL,
+ log_authentication_event(msg_ctx,
+ lp_ctx,
&auth_context->start_time,
user_info,
nt_status,
user_info->client.account_name, user_info->mapped.account_name,
nt_errstr(nt_status), *pauthoritative));
- log_authentication_event(NULL,
- NULL,
+ log_authentication_event(msg_ctx,
+ lp_ctx,
&auth_context->start_time,
user_info,
nt_status,