]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
docs: smb.conf: add auth info audit logging
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 8 Oct 2025 01:29:13 +0000 (14:29 +1300)
committerJennifer Sutton <jsutton@samba.org>
Fri, 10 Oct 2025 01:27:31 +0000 (01:27 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
docs-xml/smbdotconf/logging/loglevel.xml

index 19ab2b77571d8e4329417ff11badb641eab592ef..cd96786952ee7ea5811dd0e1c33a9a723ad85033 100644 (file)
        <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
+    <para>In the AD DC, password changes, password resets, and certain
+    authentication related attribute changes are logged under
+    <parameter>dsdb_password_audit</parameter> and a JSON
     representation is logged under the
-    <parameter>dsdb_password_json_audit</parameter>.  Password changes
+    <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>
+       <listitem><para>5: Successful password changes and resets, and
+       authentication related attribute changes.</para></listitem>
     </itemizedlist>
 
+    <para>Changes to the following attributes are logged:</para>
+    <itemizedlist>
+       <listitem><para>altSecurityIdentities</para></listitem>
+       <listitem><para>dNSHostName</para></listitem>
+       <listitem><para>msDS-AdditionalDnsHostName</para></listitem>
+       <listitem><para>msDS-KeyCredentialLink</para></listitem>
+       <listitem><para>servicePrincipalName</para></listitem>
+    </itemizedlist>
+    <para>In the <parameter>dsdb_password_json_audit</parameter> log
+    these are given the value "Auth info change" in the "action"
+    field. Password changes and resets have the value "change" and
+    "reset" in this field, respectively.</para>
+
+
     <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>