diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-03-06 14:10:17 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-03-29 02:37:27 +0200 |
commit | 366f8cf0903e3583fda42696df62a5337f22131f (patch) | |
tree | 3df24e4d721df9d9ca7c19b5aed6d642899df642 /auth/common_auth.h | |
parent | f4a4522d1f8c19fdf142e12760160b15de1557ec (diff) | |
download | samba-366f8cf0903e3583fda42696df62a5337f22131f.tar.gz |
auth: Log the transport connection for the authorization
We also log if a simple bind was over TLS, as this particular case matters to a lot of folks
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'auth/common_auth.h')
-rw-r--r-- | auth/common_auth.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/auth/common_auth.h b/auth/common_auth.h index 925d3f59ea9..f94c5f15a79 100644 --- a/auth/common_auth.h +++ b/auth/common_auth.h @@ -146,6 +146,12 @@ struct auth4_context { struct auth_session_info **session_info); }; +#define AUTHZ_TRANSPORT_PROTECTION_NONE "NONE" +#define AUTHZ_TRANSPORT_PROTECTION_SMB "SMB" +#define AUTHZ_TRANSPORT_PROTECTION_TLS "TLS" +#define AUTHZ_TRANSPORT_PROTECTION_SEAL "SEAL" +#define AUTHZ_TRANSPORT_PROTECTION_SIGN "SIGN" + void log_authentication_event(const struct auth_usersupplied_info *ui, NTSTATUS status, const char *account_name, @@ -157,5 +163,6 @@ void log_successful_authz_event(const struct tsocket_address *remote, const struct tsocket_address *local, const char *service_description, const char *auth_type, + const char *transport_protection, struct auth_session_info *session_info); #endif |