summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2018-04-10 06:44:00 +1200
committerAndrew Bartlett <abartlet@samba.org>2018-05-10 20:02:22 +0200
commit1488723a119736ed6401476ebe58afe5ba9953d4 (patch)
treed08b343cec7f77e4da7744c881434c8c95badf4d /librpc
parent79ba530aaf76be639143530ab6e28d1e3696dfd2 (diff)
downloadsamba-1488723a119736ed6401476ebe58afe5ba9953d4.tar.gz
auth: Add unique session GUID identifier
Generate a GUID for each successful authorization, this will allow the tying of events in the logs back to a specific session. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/auth.idl7
1 files changed, 7 insertions, 0 deletions
diff --git a/librpc/idl/auth.idl b/librpc/idl/auth.idl
index 6cc7dcf0d8a..d26f57579a3 100644
--- a/librpc/idl/auth.idl
+++ b/librpc/idl/auth.idl
@@ -105,6 +105,13 @@ interface auth
[noprint] DATA_BLOB session_key;
[value(NULL), ignore] cli_credentials *credentials;
+
+ /*
+ * It is really handy to have our authorization code log a
+ * token that can be used to tie later requests togeather.
+ * We generate this in auth_generate_session_info()
+ */
+ GUID unique_session_token;
} auth_session_info;
typedef [public] struct {