diff options
author | Volker Lendecke <vl@samba.org> | 2018-10-26 08:25:14 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-11-02 21:21:16 +0100 |
commit | ab542ed2c9883fdfe709be4dd0b37ef8d5862695 (patch) | |
tree | 2c6c1090a88e5c5c74ca36257219f4d16dd7d47a /auth/auth_log.c | |
parent | 74c7e3d19a590c64e0bedbb3756f23c8d6f6369e (diff) | |
download | samba-ab542ed2c9883fdfe709be4dd0b37ef8d5862695.tar.gz |
auth: Use dom_sid_str_buf
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'auth/auth_log.c')
-rw-r--r-- | auth/auth_log.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/auth/auth_log.c b/auth/auth_log.c index 96c396357c4..2d4e33f53bf 100644 --- a/auth/auth_log.c +++ b/auth/auth_log.c @@ -689,7 +689,7 @@ static void log_successful_authz_event_human_readable( const char *ts = NULL; /* formatted current time */ char *remote_str = NULL; /* formatted remote host */ char *local_str = NULL; /* formatted local host */ - char sid_buf[DOM_SID_STR_BUFLEN]; + struct dom_sid_buf sid_buf; frame = talloc_stackframe(); @@ -699,10 +699,6 @@ static void log_successful_authz_event_human_readable( remote_str = tsocket_address_string(remote, frame); local_str = tsocket_address_string(local, frame); - dom_sid_string_buf(&session_info->security_token->sids[0], - sid_buf, - sizeof(sid_buf)); - DEBUGC(DBGC_AUTH_AUDIT, debug_level, ("Successful AuthZ: [%s,%s] user [%s]\\[%s] [%s]" " at [%s]" @@ -712,7 +708,8 @@ static void log_successful_authz_event_human_readable( auth_type, log_escape(frame, session_info->info->domain_name), log_escape(frame, session_info->info->account_name), - sid_buf, + dom_sid_str_buf(&session_info->security_token->sids[0], + &sid_buf), ts, remote_str, local_str)); |