mirror of
https://github.com/samba-team/samba.git
synced 2025-01-17 02:05:21 +03:00
Add user name to netsessenum RPC to stop 1783 messages
(This used to be commit 18854bcd2df88ab49c263c86d111a50d83411885)
This commit is contained in:
parent
9a2261a92a
commit
d4fa62868e
@ -165,6 +165,9 @@ typedef struct q_net_sess_enum_info
|
|||||||
uint32 ptr_qual_name; /* pointer (to qualifier name) */
|
uint32 ptr_qual_name; /* pointer (to qualifier name) */
|
||||||
UNISTR2 uni_qual_name; /* qualifier name "\\qualifier" */
|
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 */
|
uint32 sess_level; /* session level */
|
||||||
|
|
||||||
SRV_SESS_INFO_CTR *ctr;
|
SRV_SESS_INFO_CTR *ctr;
|
||||||
|
@ -108,6 +108,7 @@ do a server net sess enum
|
|||||||
|
|
||||||
BOOL do_srv_net_srv_sess_enum(struct cli_state *cli,
|
BOOL do_srv_net_srv_sess_enum(struct cli_state *cli,
|
||||||
char *server_name, char *qual_name,
|
char *server_name, char *qual_name,
|
||||||
|
char *user_name,
|
||||||
uint32 switch_value, SRV_SESS_INFO_CTR *ctr,
|
uint32 switch_value, SRV_SESS_INFO_CTR *ctr,
|
||||||
uint32 preferred_len,
|
uint32 preferred_len,
|
||||||
ENUM_HND *hnd)
|
ENUM_HND *hnd)
|
||||||
@ -134,7 +135,7 @@ BOOL do_srv_net_srv_sess_enum(struct cli_state *cli,
|
|||||||
ctr->sess.info0.ptr_sess_info = 1;
|
ctr->sess.info0.ptr_sess_info = 1;
|
||||||
|
|
||||||
/* store the parameters */
|
/* 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,
|
switch_value, ctr,
|
||||||
preferred_len,
|
preferred_len,
|
||||||
hnd);
|
hnd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user