auth: let auth logging prefer user_info->orig_client.{account,domain}_name if available
authorStefan Metzmacher <metze@samba.org>
Thu, 3 Mar 2022 10:10:00 +0000 (11:10 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 10 Mar 2022 03:16:35 +0000 (03:16 +0000)
commit24b580cae23860a0fe6c9d3a285d60564057043d
treebe4b1afff17cf0fc86a51529cf517533880b2b72
parent427125d182252d8aee3dd906ee34a909cdbb8ef3
auth: let auth logging prefer user_info->orig_client.{account,domain}_name if available

The optional user_info->orig_client.{account,domain}_name are
the once really used by the client and should be used in
audit logging. But we still fallback to
user_info->client.{account,domain}_name.

This will be important for the next commit.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13879

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/auth_log.c
auth/common_auth.h