auth: For NTLM and KDC authentication, log the authentication duration
authorAndrew Bartlett <abartlet@samba.org>
Sun, 10 Jun 2018 11:00:34 +0000 (13:00 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 25 Jun 2018 06:32:14 +0000 (08:32 +0200)
commit1bb2a1c6b3eaccf114ac3f3b5b51f57828a04996
treef9e2d830408870f90254129a64d678198e978971
parent05b54cc259645f69e14de2703724c284ed25838c
auth: For NTLM and KDC authentication, log the authentication duration

This is not a general purpose profiling solution, but these JSON logs are already being
generated and stored, so this is worth adding.

Some administrators are very keen to know how long authentication
takes, particularly due to long replication transactions in other
processes.

This complements a similar patch set to log the transaction duration.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
13 files changed:
auth/auth_log.c
auth/common_auth.h
python/samba/tests/auth_log.py
source3/auth/auth.c
source3/include/auth.h
source4/auth/ntlm/auth.c
source4/auth/ntlm/auth_simple.c
source4/dsdb/samdb/ldb_modules/password_hash.c
source4/heimdal/kdc/kerberos5.c
source4/heimdal/lib/hdb/hdb.h
source4/kdc/hdb-samba4.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/rpc_server/samr/samr_password.c