From 31957c7fe9d0f67bef08177e982043a23b172c7d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 14 Dec 2018 16:05:33 +1300 Subject: audit_logging: auth_json_audit required auth_json To log JSON the human-readable logs must also have been enabled BUG: https://bugzilla.samba.org/show_bug.cgi?id=13715 Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Fri Dec 14 14:32:25 CET 2018 on sn-devel-144 --- auth/auth_log.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'auth') diff --git a/auth/auth_log.c b/auth/auth_log.c index 15a2c15c489..531709febce 100644 --- a/auth/auth_log.c +++ b/auth/auth_log.c @@ -270,7 +270,7 @@ static void log_authentication_event_json( log_json(msg_ctx, lp_ctx, &wrapper, - DBGC_AUTH_AUDIT, + DBGC_AUTH_AUDIT_JSON, debug_level); json_free(&wrapper); return; @@ -405,7 +405,7 @@ static void log_successful_authz_event_json( log_json(msg_ctx, lp_ctx, &wrapper, - DBGC_AUTH_AUDIT, + DBGC_AUTH_AUDIT_JSON, debug_level); json_free(&wrapper); return; -- cgit v1.2.1