diff options
author | Jim McDonough <jmcd@samba.org> | 2002-06-03 22:12:44 +0000 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2002-06-03 22:12:44 +0000 |
commit | d4fa62868e3737c46c6cad628831aab4c9608c46 (patch) | |
tree | 9b96c0056af3ca900b76223942c37238839c382a | |
parent | 9a2261a92a7880a93ab5c1ef8622b85c6e98d983 (diff) | |
download | samba-d4fa62868e3737c46c6cad628831aab4c9608c46.tar.gz samba-d4fa62868e3737c46c6cad628831aab4c9608c46.tar.bz2 samba-d4fa62868e3737c46c6cad628831aab4c9608c46.zip |
Add user name to netsessenum RPC to stop 1783 messages
(This used to be commit 18854bcd2df88ab49c263c86d111a50d83411885)
-rw-r--r-- | source3/include/rpc_srvsvc.h | 3 | ||||
-rw-r--r-- | source3/rpc_client/cli_srvsvc.c | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/source3/include/rpc_srvsvc.h b/source3/include/rpc_srvsvc.h index a41f9a686d..1753c19783 100644 --- a/source3/include/rpc_srvsvc.h +++ b/source3/include/rpc_srvsvc.h @@ -165,6 +165,9 @@ typedef struct q_net_sess_enum_info uint32 ptr_qual_name; /* pointer (to qualifier name) */ UNISTR2 uni_qual_name; /* qualifier name "\\qualifier" */ + uint32 ptr_user_name; /* pointer (to user name */ + UNISTR2 uni_user_name; /* user name */ + uint32 sess_level; /* session level */ SRV_SESS_INFO_CTR *ctr; diff --git a/source3/rpc_client/cli_srvsvc.c b/source3/rpc_client/cli_srvsvc.c index c2b2e9f163..f5c19e289f 100644 --- a/source3/rpc_client/cli_srvsvc.c +++ b/source3/rpc_client/cli_srvsvc.c @@ -107,10 +107,11 @@ do a server net sess enum ****************************************************************************/ BOOL do_srv_net_srv_sess_enum(struct cli_state *cli, - char *server_name, char *qual_name, - uint32 switch_value, SRV_SESS_INFO_CTR *ctr, - uint32 preferred_len, - ENUM_HND *hnd) + char *server_name, char *qual_name, + char *user_name, + uint32 switch_value, SRV_SESS_INFO_CTR *ctr, + uint32 preferred_len, + ENUM_HND *hnd) { prs_struct data; prs_struct rdata; @@ -134,7 +135,7 @@ BOOL do_srv_net_srv_sess_enum(struct cli_state *cli, ctr->sess.info0.ptr_sess_info = 1; /* store the parameters */ - init_srv_q_net_sess_enum(&q_o, server_name, qual_name, + init_srv_q_net_sess_enum(&q_o, server_name, qual_name, user_name, switch_value, ctr, preferred_len, hnd); |