mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +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:
parent
e845afe11a
commit
308f89ce6a
@ -1479,9 +1479,16 @@ import "misc.idl", "lsa.idl", "security.idl";
|
|||||||
/************************/
|
/************************/
|
||||||
/* Function 0x40 */
|
/* 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 {
|
typedef struct {
|
||||||
samr_ConnectVersion client_version; /* w2k3 gives 3 */
|
samr_ConnectVersion client_version; /* w2k3 gives 3 */
|
||||||
uint32 unknown2; /* w2k3 gives 0 */
|
samr_SupportedFeatures supported_features;
|
||||||
} samr_ConnectInfo1;
|
} samr_ConnectInfo1;
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
|
@ -4197,7 +4197,7 @@ NTSTATUS _samr_Connect5(struct pipes_struct *p,
|
|||||||
struct samr_ConnectInfo1 info1;
|
struct samr_ConnectInfo1 info1;
|
||||||
|
|
||||||
info1.client_version = SAMR_CONNECT_AFTER_W2K;
|
info1.client_version = SAMR_CONNECT_AFTER_W2K;
|
||||||
info1.unknown2 = 0;
|
info1.supported_features = 0;
|
||||||
|
|
||||||
c.in.system_name = r->in.system_name;
|
c.in.system_name = r->in.system_name;
|
||||||
c.in.access_mask = r->in.access_mask;
|
c.in.access_mask = r->in.access_mask;
|
||||||
|
@ -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);
|
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.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;
|
*r->out.level_out = r->in.level_in;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
|
@ -8580,7 +8580,7 @@ static bool test_Connect(struct dcerpc_binding_handle *b,
|
|||||||
torture_comment(tctx, "Testing samr_Connect5\n");
|
torture_comment(tctx, "Testing samr_Connect5\n");
|
||||||
|
|
||||||
info.info1.client_version = 0;
|
info.info1.client_version = 0;
|
||||||
info.info1.unknown2 = 0;
|
info.info1.supported_features = 0;
|
||||||
|
|
||||||
r5.in.system_name = "";
|
r5.in.system_name = "";
|
||||||
r5.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
|
r5.in.access_mask = SEC_FLAG_MAXIMUM_ALLOWED;
|
||||||
|
@ -57,7 +57,7 @@ static NTSTATUS torture_samr_Connect5(struct torture_context *tctx,
|
|||||||
uint32_t level_out = 0;
|
uint32_t level_out = 0;
|
||||||
|
|
||||||
info.info1.client_version = 0;
|
info.info1.client_version = 0;
|
||||||
info.info1.unknown2 = 0;
|
info.info1.supported_features = 0;
|
||||||
r5.in.system_name = "";
|
r5.in.system_name = "";
|
||||||
r5.in.level_in = 1;
|
r5.in.level_in = 1;
|
||||||
r5.in.info_in = &info;
|
r5.in.info_in = &info;
|
||||||
|
@ -60,7 +60,7 @@ static NTSTATUS torture_samr_Connect5(struct torture_context *tctx,
|
|||||||
uint32_t level_out = 0;
|
uint32_t level_out = 0;
|
||||||
|
|
||||||
info.info1.client_version = 0;
|
info.info1.client_version = 0;
|
||||||
info.info1.unknown2 = 0;
|
info.info1.supported_features = 0;
|
||||||
r5.in.system_name = "";
|
r5.in.system_name = "";
|
||||||
r5.in.level_in = 1;
|
r5.in.level_in = 1;
|
||||||
r5.in.info_in = &info;
|
r5.in.info_in = &info;
|
||||||
|
Loading…
Reference in New Issue
Block a user