summaryrefslogtreecommitdiff
path: root/auth/auth_log.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2017-03-01 16:00:03 +1300
committerAndrew Bartlett <abartlet@samba.org>2017-03-29 02:37:27 +0200
commit0e508853fcb6cc0e8ca2b6ff48d8b5468b339468 (patch)
tree90589fa5cd0dd8e8754300f8161abf219fbd9c87 /auth/auth_log.c
parent46a800fae3b054a2e9c2f26f35630cadf11cfe3e (diff)
downloadsamba-0e508853fcb6cc0e8ca2b6ff48d8b5468b339468.tar.gz
auth_log: Also log the final type of authentication (ntlmssp,krb5)
Administrators really care about how their users were authenticated, so make this clear. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-by: Gary Lockyer <gary@catalyst.net.nz> Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'auth/auth_log.c')
-rw-r--r--auth/auth_log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth/auth_log.c b/auth/auth_log.c
index fec77077bc9..1509c7b9be6 100644
--- a/auth/auth_log.c
+++ b/auth/auth_log.c
@@ -213,6 +213,7 @@ void log_authentication_event(const struct auth_usersupplied_info *ui,
void log_successful_authz_event(const struct tsocket_address *remote,
const struct tsocket_address *local,
const char *service_description,
+ const char *auth_type,
struct auth_session_info *session_info)
{
TALLOC_CTX *frame = NULL;
@@ -238,11 +239,12 @@ void log_successful_authz_event(const struct tsocket_address *remote,
dom_sid_string_buf(&session_info->security_token->sids[0], sid_buf, sizeof(sid_buf));
DEBUGC( DBGC_AUTH_AUDIT, AUTHZ_SUCCESS_LEVEL, (
- "Successful AuthZ: [%s] user [%s]\\[%s] [%s]"
+ "Successful AuthZ: [%s,%s] user [%s]\\[%s] [%s]"
" at [%s]"
" Remote host [%s]"
" local host [%s]\n",
service_description,
+ auth_type,
log_escape(frame, session_info->info->domain_name),
log_escape(frame, session_info->info->account_name),
sid_buf,