docs: Expand the "log level" docs on audit logging
authorAndrew Bartlett <abartlet@samba.org>
Thu, 15 Apr 2021 22:43:07 +0000 (10:43 +1200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 3 May 2021 08:17:13 +0000 (08:17 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14689

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 38fe888f95f8d22736080ed521939be932e7bca0)

docs-xml/smbdotconf/logging/loglevel.xml

index 6ee9cdceb87a2a94a6ccb5b32ddf20f0b67706de..4c6bb5e7e73606b87c000ce5b42cad74e3d5fa3c 100644 (file)
        <listitem><para>5: Anonymous Authentication and Authorization Success</para></listitem>
     </itemizedlist>
 
-    <para>Changes to the <command moreinfo="none">sam.ldb</command>
+    <para>Changes to the AD DC <command moreinfo="none">sam.ldb</command>
     database are logged under the <parameter>dsdb_audit</parameter>
     and a JSON representation is logged under
     <parameter>dsdb_json_audit</parameter>.</para>
 
-    <para>Group membership changes to the <command
+    <para>Group membership changes to the AD DC <command
     moreinfo="none">sam.ldb</command> database are logged under the
     <parameter>dsdb_group_audit</parameter> and a JSON representation
     is logged under
     <parameter>dsdb_group_json_audit</parameter>.</para>
 
-    <para>Password changes and Password resets are logged under
-    <parameter>dsdb_password_audit</parameter> and a JSON representation is logged under the
-    <parameter>dsdb_password_json_audit</parameter>.</para>
+    <para>Log levels for <parameter>dsdb_audit</parameter>,
+    <parameter>dsdb_json_audit</parameter>,
+    <parameter>dsdb_group_audit</parameter>,
+    <parameter>dsdb_group_json_audit</parameter> and
+    <parameter>dsdb_json_audit</parameter> are:</para>
+    <itemizedlist>
+       <listitem><para>5: Database modifications</para></listitem>
+       <listitem><para>5: Replicated updates from another DC</para></listitem>
+    </itemizedlist>
+
+    <para>Password changes and Password resets in the AD DC are logged
+    under <parameter>dsdb_password_audit</parameter> and a JSON
+    representation is logged under the
+    <parameter>dsdb_password_json_audit</parameter>.  Password changes
+    will also appears as authentication events via
+    <parameter>auth_audit</parameter> and
+    <parameter>auth_audit_json</parameter>.</para>
+
+    <para>Log levels for <parameter>dsdb_password_audit</parameter> and
+    <parameter>dsdb_password_json_audit</parameter> are:</para>
+    <itemizedlist>
+       <listitem><para>5: Successful password changes and resets</para></listitem>
+    </itemizedlist>
 
     <para>Transaction rollbacks and prepare commit failures are logged under
     the <parameter>dsdb_transaction_audit</parameter> and a JSON representation is logged under the
     <parameter>dsdb_transaction_json_audit</parameter>. </para>
 
+    <para>Log levels for <parameter>dsdb_transaction_audit</parameter> and
+    <parameter>dsdb_transaction_json</parameter> are:</para>
+
+    <itemizedlist>
+       <listitem><para>5: Transaction failure (rollback)</para></listitem>
+       <listitem><para>10: Transaction success (commit)</para></listitem>
+    </itemizedlist>
+
     <para>Transaction roll-backs are possible in Samba, and whilst
     they rarely reflect anything more than the failure of an
     individual operation (say due to the add of a conflicting record),