1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-12 12:23:50 +03:00

r11769: Looking at a performance problem enumerating accounts, wondered

if changing to support samr_connect5 might help so quickly coded
it up. No it doesn't :-(. Don't merge this for 3.0.21 please.
Jeremy.
This commit is contained in:
Jeremy Allison
2005-11-17 22:40:10 +00:00
committed by Gerald (Jerry) Carter
parent 52b6f0db2e
commit bff1df678a
4 changed files with 225 additions and 3 deletions

View File

@@ -143,6 +143,7 @@ SamrTestPrivateFunctionsUser
#define SAMR_CONNECT 0x39
#define SAMR_SET_USERINFO 0x3A
#define SAMR_CONNECT4 0x3E
#define SAMR_CONNECT5 0x40
typedef struct logon_hours_info
{
@@ -1697,7 +1698,7 @@ typedef struct q_samr_connect_info
/* SAMR_R_CONNECT - probably an open */
typedef struct r_samr_connect_info
{
POLICY_HND connect_pol; /* policy handle */
POLICY_HND connect_pol; /* policy handle */
NTSTATUS status; /* return status */
} SAMR_R_CONNECT;
@@ -1715,6 +1716,31 @@ typedef struct q_samr_connect4_info
/* SAMR_R_CONNECT4 - same format as connect */
typedef struct r_samr_connect_info SAMR_R_CONNECT4;
/* SAMR_Q_CONNECT5 */
typedef struct q_samr_connect5_info
{
uint32 ptr_srv_name; /* pointer to server name */
UNISTR2 uni_srv_name;
uint32 access_mask;
uint32 level;
/* These following are acutally a level dependent
value. Fudge it for now. JRA */
uint32 info1_unk1;
uint32 info1_unk2;
} SAMR_Q_CONNECT5;
/* SAMR_R_CONNECT5 */
typedef struct r_samr_connect_info5
{
uint32 level;
uint32 info1_unk1;
uint32 info1_unk2;
POLICY_HND connect_pol; /* policy handle */
NTSTATUS status; /* return status */
} SAMR_R_CONNECT5;
/* SAMR_Q_GET_DOM_PWINFO */
typedef struct q_samr_get_dom_pwinfo
{