1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

samr:idl: add samr_SupportedFeatures for samr_Connect5()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Andreas Schneider 2021-08-25 14:11:28 +02:00 committed by Andreas Schneider
parent e845afe11a
commit 308f89ce6a
6 changed files with 13 additions and 6 deletions

View File

@ -1479,9 +1479,16 @@ import "misc.idl", "lsa.idl", "security.idl";
/************************/
/* Function 0x40 */
typedef [v1_enum] enum {
SAMR_CONNECT_FEATURE_RID_ONLY = 0x00000001,
SAMR_CONNECT_FEATURE_RESRVED1 = 0x00000002,
SAMR_CONNECT_FEATURE_RESRVED2 = 0x00000004,
SAMR_CONNECT_FEATURE_USE_AES = 0x00000010
} samr_SupportedFeatures;
typedef struct {
samr_ConnectVersion client_version; /* w2k3 gives 3 */
uint32 unknown2; /* w2k3 gives 0 */
samr_SupportedFeatures supported_features;
} samr_ConnectInfo1;
typedef union {

View File

@ -4197,7 +4197,7 @@ NTSTATUS _samr_Connect5(struct pipes_struct *p,
struct samr_ConnectInfo1 info1;
info1.client_version = SAMR_CONNECT_AFTER_W2K;
info1.unknown2 = 0;
info1.supported_features = 0;
c.in.system_name = r->in.system_name;
c.in.access_mask = r->in.access_mask;

View File

@ -4953,7 +4953,7 @@ static NTSTATUS dcesrv_samr_Connect5(struct dcesrv_call_state *dce_call, TALLOC_
status = dcesrv_samr_Connect(dce_call, mem_ctx, &c);
r->out.info_out->info1.client_version = SAMR_CONNECT_AFTER_W2K;
r->out.info_out->info1.unknown2 = 0;
r->out.info_out->info1.supported_features = 0;
*r->out.level_out = r->in.level_in;
return status;

View File

@ -8580,7 +8580,7 @@ static bool test_Connect(struct dcerpc_binding_handle *b,
torture_comment(tctx, "Testing samr_Connect5\n");
info.info1.client_version = 0;
info.info1.unknown2 = 0;
info.info1.supported_features = 0;
r5.in.system_name = "";
r5.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;

View File

@ -57,7 +57,7 @@ static NTSTATUS torture_samr_Connect5(struct torture_context *tctx,
uint32_t level_out = 0;
info.info1.client_version = 0;
info.info1.unknown2 = 0;
info.info1.supported_features = 0;
r5.in.system_name = "";
r5.in.level_in = 1;
r5.in.info_in = &info;

View File

@ -60,7 +60,7 @@ static NTSTATUS torture_samr_Connect5(struct torture_context *tctx,
uint32_t level_out = 0;
info.info1.client_version = 0;
info.info1.unknown2 = 0;
info.info1.supported_features = 0;
r5.in.system_name = "";
r5.in.level_in = 1;
r5.in.info_in = &info;