| 1 |
<samba:parameter name="log level" |
| 2 |
type="string" |
| 3 |
context="G" |
| 4 |
handler="handle_debug_list" |
| 5 |
substitution="1" |
| 6 |
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc"> |
| 7 |
<synonym>debuglevel</synonym> |
| 8 |
<description> |
| 9 |
<para> |
| 10 |
The value of the parameter (a string) allows the debug level (logging level) to be specified in the |
| 11 |
<filename moreinfo="none">smb.conf</filename> file. |
| 12 |
</para> |
| 13 |
|
| 14 |
<para>This parameter has been extended since the 2.2.x |
| 15 |
series, now it allows one to specify the debug level for multiple |
| 16 |
debug classes and distinct logfiles for debug classes. This is to give |
| 17 |
greater flexibility in the configuration of the system. The following |
| 18 |
debug classes are currently implemented: |
| 19 |
</para> |
| 20 |
|
| 21 |
<itemizedlist> |
| 22 |
<listitem><para><parameter moreinfo="none">all</parameter></para></listitem> |
| 23 |
<listitem><para><parameter moreinfo="none">tdb</parameter></para></listitem> |
| 24 |
<listitem><para><parameter moreinfo="none">printdrivers</parameter></para></listitem> |
| 25 |
<listitem><para><parameter moreinfo="none">lanman</parameter></para></listitem> |
| 26 |
<listitem><para><parameter moreinfo="none">smb</parameter></para></listitem> |
| 27 |
<listitem><para><parameter moreinfo="none">rpc_parse</parameter></para></listitem> |
| 28 |
<listitem><para><parameter moreinfo="none">rpc_srv</parameter></para></listitem> |
| 29 |
<listitem><para><parameter moreinfo="none">rpc_cli</parameter></para></listitem> |
| 30 |
<listitem><para><parameter moreinfo="none">passdb</parameter></para></listitem> |
| 31 |
<listitem><para><parameter moreinfo="none">sam</parameter></para></listitem> |
| 32 |
<listitem><para><parameter moreinfo="none">auth</parameter></para></listitem> |
| 33 |
<listitem><para><parameter moreinfo="none">winbind</parameter></para></listitem> |
| 34 |
<listitem><para><parameter moreinfo="none">vfs</parameter></para></listitem> |
| 35 |
<listitem><para><parameter moreinfo="none">idmap</parameter></para></listitem> |
| 36 |
<listitem><para><parameter moreinfo="none">quota</parameter></para></listitem> |
| 37 |
<listitem><para><parameter moreinfo="none">acls</parameter></para></listitem> |
| 38 |
<listitem><para><parameter moreinfo="none">locking</parameter></para></listitem> |
| 39 |
<listitem><para><parameter moreinfo="none">msdfs</parameter></para></listitem> |
| 40 |
<listitem><para><parameter moreinfo="none">dmapi</parameter></para></listitem> |
| 41 |
<listitem><para><parameter moreinfo="none">registry</parameter></para></listitem> |
| 42 |
<listitem><para><parameter moreinfo="none">scavenger</parameter></para></listitem> |
| 43 |
<listitem><para><parameter moreinfo="none">dns</parameter></para></listitem> |
| 44 |
<listitem><para><parameter moreinfo="none">ldb</parameter></para></listitem> |
| 45 |
<listitem><para><parameter moreinfo="none">tevent</parameter></para></listitem> |
| 46 |
<listitem><para><parameter moreinfo="none">auth_audit</parameter></para></listitem> |
| 47 |
<listitem><para><parameter moreinfo="none">auth_json_audit</parameter></para></listitem> |
| 48 |
<listitem><para><parameter moreinfo="none">kerberos</parameter></para></listitem> |
| 49 |
<listitem><para><parameter moreinfo="none">drs_repl</parameter></para></listitem> |
| 50 |
<listitem><para><parameter moreinfo="none">smb2</parameter></para></listitem> |
| 51 |
<listitem><para><parameter moreinfo="none">smb2_credits</parameter></para></listitem> |
| 52 |
<listitem><para><parameter moreinfo="none">dsdb_audit</parameter></para></listitem> |
| 53 |
<listitem><para><parameter moreinfo="none">dsdb_json_audit</parameter></para></listitem> |
| 54 |
<listitem><para><parameter moreinfo="none">dsdb_password_audit</parameter></para></listitem> |
| 55 |
<listitem><para><parameter moreinfo="none">dsdb_password_json_audit</parameter></para></listitem> |
| 56 |
<listitem><para><parameter moreinfo="none">dsdb_transaction_audit</parameter></para></listitem> |
| 57 |
<listitem><para><parameter moreinfo="none">dsdb_transaction_json_audit</parameter></para></listitem> |
| 58 |
<listitem><para><parameter moreinfo="none">dsdb_group_audit</parameter></para></listitem> |
| 59 |
<listitem><para><parameter moreinfo="none">dsdb_group_json_audit</parameter></para></listitem> |
| 60 |
<listitem><para><parameter moreinfo="none">ldapsrv</parameter></para></listitem> |
| 61 |
</itemizedlist> |
| 62 |
|
| 63 |
<para>Various modules register dynamic debug classes at first usage:</para> |
| 64 |
<itemizedlist> |
| 65 |
<listitem><para><parameter moreinfo="none">catia</parameter></para></listitem> |
| 66 |
<listitem><para><parameter moreinfo="none">dfs_samba4</parameter></para></listitem> |
| 67 |
<listitem><para><parameter moreinfo="none">extd_audit</parameter></para></listitem> |
| 68 |
<listitem><para><parameter moreinfo="none">fileid</parameter></para></listitem> |
| 69 |
<listitem><para><parameter moreinfo="none">fruit</parameter></para></listitem> |
| 70 |
<listitem><para><parameter moreinfo="none">full_audit</parameter></para></listitem> |
| 71 |
<listitem><para><parameter moreinfo="none">media_harmony</parameter></para></listitem> |
| 72 |
<listitem><para><parameter moreinfo="none">preopen</parameter></para></listitem> |
| 73 |
<listitem><para><parameter moreinfo="none">recycle</parameter></para></listitem> |
| 74 |
<listitem><para><parameter moreinfo="none">shadow_copy</parameter></para></listitem> |
| 75 |
<listitem><para><parameter moreinfo="none">shadow_copy</parameter></para></listitem> |
| 76 |
<listitem><para><parameter moreinfo="none">unityed_media</parameter></para></listitem> |
| 77 |
<listitem><para><parameter moreinfo="none">virusfilter</parameter></para></listitem> |
| 78 |
</itemizedlist> |
| 79 |
|
| 80 |
<para>To configure the logging for specific classes to go into a different |
| 81 |
file then <smbconfoption name="log file"/>, you can append |
| 82 |
<emphasis>@PATH</emphasis> to the class, eg <parameter>log level = 1 |
| 83 |
full_audit:1@/var/log/audit.log</parameter>.</para> |
| 84 |
|
| 85 |
<para>Authentication and authorization audit information is logged |
| 86 |
under the <parameter>auth_audit</parameter>, and if Samba was not compiled with |
| 87 |
--without-json, a JSON representation is logged under |
| 88 |
<parameter>auth_json_audit</parameter>.</para> |
| 89 |
|
| 90 |
<para>Support is comprehensive for all authentication and authorisation |
| 91 |
of user accounts in the Samba Active Directory Domain Controller, |
| 92 |
as well as the implicit authentication in password changes. In |
| 93 |
the file server, NTLM authentication, SMB and RPC authorization is |
| 94 |
covered.</para> |
| 95 |
|
| 96 |
<para>Log levels for <parameter>auth_audit</parameter> and |
| 97 |
<parameter>auth_audit_json</parameter> are:</para> |
| 98 |
<itemizedlist> |
| 99 |
<listitem><para>2: Authentication Failure</para></listitem> |
| 100 |
<listitem><para>3: Authentication Success</para></listitem> |
| 101 |
<listitem><para>4: Authorization Success</para></listitem> |
| 102 |
<listitem><para>5: Anonymous Authentication and Authorization Success</para></listitem> |
| 103 |
</itemizedlist> |
| 104 |
|
| 105 |
<para>Changes to the AD DC <command moreinfo="none">sam.ldb</command> |
| 106 |
database are logged under the <parameter>dsdb_audit</parameter> |
| 107 |
and a JSON representation is logged under |
| 108 |
<parameter>dsdb_json_audit</parameter>.</para> |
| 109 |
|
| 110 |
<para>Group membership changes to the AD DC <command |
| 111 |
moreinfo="none">sam.ldb</command> database are logged under the |
| 112 |
<parameter>dsdb_group_audit</parameter> and a JSON representation |
| 113 |
is logged under |
| 114 |
<parameter>dsdb_group_json_audit</parameter>.</para> |
| 115 |
|
| 116 |
<para>Log levels for <parameter>dsdb_audit</parameter>, |
| 117 |
<parameter>dsdb_json_audit</parameter>, |
| 118 |
<parameter>dsdb_group_audit</parameter>, |
| 119 |
<parameter>dsdb_group_json_audit</parameter> and |
| 120 |
<parameter>dsdb_json_audit</parameter> are:</para> |
| 121 |
<itemizedlist> |
| 122 |
<listitem><para>5: Database modifications</para></listitem> |
| 123 |
<listitem><para>5: Replicated updates from another DC</para></listitem> |
| 124 |
</itemizedlist> |
| 125 |
|
| 126 |
<para>In the AD DC, password changes, password resets, and certain |
| 127 |
authentication related attribute changes are logged under |
| 128 |
<parameter>dsdb_password_audit</parameter> and a JSON |
| 129 |
representation is logged under the |
| 130 |
<parameter>dsdb_password_json_audit</parameter>. Password changes |
| 131 |
will also appears as authentication events via |
| 132 |
<parameter>auth_audit</parameter> and |
| 133 |
<parameter>auth_audit_json</parameter>.</para> |
| 134 |
|
| 135 |
<para>Log levels for <parameter>dsdb_password_audit</parameter> and |
| 136 |
<parameter>dsdb_password_json_audit</parameter> are:</para> |
| 137 |
<itemizedlist> |
| 138 |
<listitem><para>5: Successful password changes and resets, and |
| 139 |
authentication related attribute changes.</para></listitem> |
| 140 |
</itemizedlist> |
| 141 |
|
| 142 |
<para>Changes to the following attributes are logged:</para> |
| 143 |
<itemizedlist> |
| 144 |
<listitem><para>altSecurityIdentities</para></listitem> |
| 145 |
<listitem><para>dNSHostName</para></listitem> |
| 146 |
<listitem><para>msDS-AdditionalDnsHostName</para></listitem> |
| 147 |
<listitem><para>msDS-KeyCredentialLink</para></listitem> |
| 148 |
<listitem><para>servicePrincipalName</para></listitem> |
| 149 |
</itemizedlist> |
| 150 |
<para>In the <parameter>dsdb_password_json_audit</parameter> log |
| 151 |
these are given the value "Auth info change" in the "action" |
| 152 |
field. Password changes and resets have the value "change" and |
| 153 |
"reset" in this field, respectively.</para> |
| 154 |
|
| 155 |
|
| 156 |
<para>Transaction rollbacks and prepare commit failures are logged under |
| 157 |
the <parameter>dsdb_transaction_audit</parameter> and a JSON representation is logged under the |
| 158 |
<parameter>dsdb_transaction_json_audit</parameter>. </para> |
| 159 |
|
| 160 |
<para>Log levels for <parameter>dsdb_transaction_audit</parameter> and |
| 161 |
<parameter>dsdb_transaction_json</parameter> are:</para> |
| 162 |
|
| 163 |
<itemizedlist> |
| 164 |
<listitem><para>5: Transaction failure (rollback)</para></listitem> |
| 165 |
<listitem><para>10: Transaction success (commit)</para></listitem> |
| 166 |
</itemizedlist> |
| 167 |
|
| 168 |
<para>Transaction roll-backs are possible in Samba, and whilst |
| 169 |
they rarely reflect anything more than the failure of an |
| 170 |
individual operation (say due to the add of a conflicting record), |
| 171 |
they are possible. Audit logs are already generated and sent to |
| 172 |
the system logs before the transaction is complete. Logging the |
| 173 |
transaction details allows the identification of password and |
| 174 |
<command moreinfo="none">sam.ldb</command> operations that have |
| 175 |
been rolled back, and so have not actually persisted.</para> |
| 176 |
|
| 177 |
<warning><para> Changes to <command |
| 178 |
moreinfo="none">sam.ldb</command> made locally by the <command |
| 179 |
moreinfo="none">root</command> user with direct access to the |
| 180 |
database are not logged to the system logs, but to the |
| 181 |
administrator's own console. While less than ideal, any user able |
| 182 |
to make such modifications could disable the audit logging in any |
| 183 |
case. </para></warning> |
| 184 |
</description> |
| 185 |
<value type="default">0</value> |
| 186 |
<value type="example">3 passdb:5 auth:10 winbind:2</value> |
| 187 |
<value type="example">1 full_audit:1@/var/log/audit.log winbind:2</value> |
| 188 |
</samba:parameter> |