summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2017-03-06 16:16:51 +1300
committerAndrew Bartlett <abartlet@samba.org>2017-03-29 02:37:27 +0200
commit387eb18a1ccdcea3040476efbc2769de40ccf86e (patch)
tree8ece2624609a73b544bf8189ba0c3bcc3ffc10e8 /lib/util
parent366f8cf0903e3583fda42696df62a5337f22131f (diff)
downloadsamba-387eb18a1ccdcea3040476efbc2769de40ccf86e.tar.gz
auth_log: Add JSON logging of Authorisation and Authentications
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Pair-Programmed: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/debug.c1
-rw-r--r--lib/util/debug.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c
index 009f3629979..f48daf69553 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -538,6 +538,7 @@ static const char *default_classname_table[] = {
[DBGC_LDB] = "ldb",
[DBGC_TEVENT] = "tevent",
[DBGC_AUTH_AUDIT] = "auth_audit",
+ [DBGC_AUTH_AUDIT_JSON] = "auth_json_audit",
};
/*
diff --git a/lib/util/debug.h b/lib/util/debug.h
index 786c80958ec..9d5f438255d 100644
--- a/lib/util/debug.h
+++ b/lib/util/debug.h
@@ -90,7 +90,7 @@ bool dbghdr( int level, const char *location, const char *func);
#define DBGC_LDB 22
#define DBGC_TEVENT 23
#define DBGC_AUTH_AUDIT 24
-
+#define DBGC_AUTH_AUDIT_JSON 25
/* So you can define DBGC_CLASS before including debug.h */
#ifndef DBGC_CLASS
#define DBGC_CLASS 0 /* override as shown above */