summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-19 03:58:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:29:39 -0500
commit25428433e3e279491f0b6f73e2489140517ae454 (patch)
treecceaf39435bb22028634d74ff33b68c46888699e /source4/librpc
parent1bc4bd4c14e01788bdb4ed09b12eaf0abacab2c1 (diff)
downloadsamba-25428433e3e279491f0b6f73e2489140517ae454.tar.gz
samba-25428433e3e279491f0b6f73e2489140517ae454.tar.bz2
samba-25428433e3e279491f0b6f73e2489140517ae454.zip
r8574: added server side irpc calls for listing the current sessions
(This used to be commit 391cfe3c9645a19f8f5ff5c11b1ac03ee0b10f8f)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/idl/irpc.idl30
1 files changed, 30 insertions, 0 deletions
diff --git a/source4/librpc/idl/irpc.idl b/source4/librpc/idl/irpc.idl
index c28f861bd7..4c4a8810fe 100644
--- a/source4/librpc/idl/irpc.idl
+++ b/source4/librpc/idl/irpc.idl
@@ -47,4 +47,34 @@
[out,switch_is(level)] nbtd_info info
);
+
+ /******************************************************
+ management calls for the smb server
+ ******************************************************/
+ typedef [v1_enum] enum {
+ SMBSRV_INFO_SESSIONS
+ } smbsrv_info_level;
+
+ typedef struct {
+ uint16 vuid;
+ astring account_name;
+ astring domain_name;
+ astring client_ip;
+ NTTIME connect_time;
+ } smbsrv_session_info;
+
+ typedef struct {
+ uint32 num_sessions;
+ [size_is(num_sessions)] smbsrv_session_info *sessions;
+ } smbsrv_sessions;
+
+ typedef union {
+ [case(SMBSRV_INFO_SESSIONS)] smbsrv_sessions sessions;
+ } smbsrv_info;
+
+ void smbsrv_information(
+ [in] smbsrv_info_level level,
+ [out,switch_is(level)] smbsrv_info info
+ );
+
}