s3:smbXsrv_session: remember the smbXsrv_connection on channel attached to a session
authorStefan Metzmacher <metze@samba.org>
Thu, 12 Jun 2014 07:51:18 +0000 (09:51 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 19 Sep 2014 07:15:13 +0000 (09:15 +0200)
A session will be usable from multiple connections in future.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/librpc/idl/smbXsrv.idl
source3/smbd/smbXsrv_session.c

index 6d9e2c7a8e6b3cc57cb5f2edf18e7b4849266e36..00354423f75bed9588abe2b0ee58eb6137163b18 100644 (file)
@@ -123,6 +123,7 @@ interface smbXsrv
                [charset(UTF8),string] char             remote_name[];
                [noprint] DATA_BLOB                     signing_key;
                uint32                                  auth_session_info_seqnum;
+               [ignore] smbXsrv_connection             *connection;
        } smbXsrv_channel_global0;
 
        typedef struct {
index 9f0fa1d5afdbed6cfcf33a5ffcf093e9c302aeb2..dd7991c3eab4afb250fafe44606c7e0158b43465 100644 (file)
@@ -1187,6 +1187,7 @@ NTSTATUS smbXsrv_session_create(struct smbXsrv_connection *conn,
                return NT_STATUS_NO_MEMORY;
        }
        channels[0].signing_key = data_blob_null;
+       channels[0].connection = conn;
 
        ptr = session;
        val = make_tdb_data((uint8_t const *)&ptr, sizeof(ptr));