s3:sessionid: export smbXsrv_session_global via sessionid->global
authorStefan Metzmacher <metze@samba.org>
Fri, 15 Dec 2023 15:45:54 +0000 (16:45 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 9 Jan 2024 10:21:34 +0000 (10:21 +0000)
This will allow smbstatus --json to dump more details.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/include/session.h
source3/lib/sessionid_tdb.c

index 268c059a8ed2cadb15918bee8e95270c8564e8ce..40c25e514bb43343c99d7b2ec002b2262686a3a5 100644 (file)
@@ -43,5 +43,6 @@ struct sessionid {
        uint16_t cipher;
        uint16_t signing;
        uint8_t signing_flags;
+       const struct smbXsrv_session_global0 *global;
 };
 
index 32962253908f5d1aed98ce7bfe818615dfeea4eb..2376fd42a25eea5e11b554e6feb4558a026b2920 100644 (file)
@@ -44,6 +44,7 @@ static int sessionid_traverse_read_fn(struct smbXsrv_session_global0 *global,
                .connect_start = nt_time_to_unix(global->creation_time),
                .pid = global->channels[0].server_id,
                .connection_dialect = global->connection_dialect,
+               .global = global,
        };
 
        if (session_info != NULL) {