mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
Add user name to netsessenum RPC to stop 1783 messages
(This used to be commit 18854bcd2d
)
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) */
|
||||
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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user