6
6
#include "librpc/gen_ndr/ndr_lsa.h"
7
7
#include "librpc/gen_ndr/ndr_netlogon.h"
8
#include "librpc/gen_ndr/ndr_misc.h"
9
#include "librpc/gen_ndr/ndr_security.h"
10
#include "librpc/gen_ndr/ndr_idmap.h"
11
static enum ndr_err_code ndr_push_wbint_TransID(struct ndr_push *ndr, int ndr_flags, const struct wbint_TransID *r)
13
if (ndr_flags & NDR_SCALARS) {
14
NDR_CHECK(ndr_push_align(ndr, 8));
15
NDR_CHECK(ndr_push_id_type(ndr, NDR_SCALARS, r->type));
16
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->domain_index));
17
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->rid));
18
NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->unix_id));
19
NDR_CHECK(ndr_push_trailer_align(ndr, 8));
21
if (ndr_flags & NDR_BUFFERS) {
23
return NDR_ERR_SUCCESS;
26
static enum ndr_err_code ndr_pull_wbint_TransID(struct ndr_pull *ndr, int ndr_flags, struct wbint_TransID *r)
28
if (ndr_flags & NDR_SCALARS) {
29
NDR_CHECK(ndr_pull_align(ndr, 8));
30
NDR_CHECK(ndr_pull_id_type(ndr, NDR_SCALARS, &r->type));
31
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->domain_index));
32
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->rid));
33
NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->unix_id));
34
NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
36
if (ndr_flags & NDR_BUFFERS) {
38
return NDR_ERR_SUCCESS;
41
_PUBLIC_ void ndr_print_wbint_TransID(struct ndr_print *ndr, const char *name, const struct wbint_TransID *r)
43
ndr_print_struct(ndr, name, "wbint_TransID");
44
if (r == NULL) { ndr_print_null(ndr); return; }
46
ndr_print_id_type(ndr, "type", r->type);
47
ndr_print_uint32(ndr, "domain_index", r->domain_index);
48
ndr_print_uint32(ndr, "rid", r->rid);
49
ndr_print_hyper(ndr, "unix_id", r->unix_id);
53
static enum ndr_err_code ndr_push_wbint_TransIDArray(struct ndr_push *ndr, int ndr_flags, const struct wbint_TransIDArray *r)
56
if (ndr_flags & NDR_SCALARS) {
57
NDR_CHECK(ndr_push_uint3264(ndr, NDR_SCALARS, r->num_ids));
58
NDR_CHECK(ndr_push_align(ndr, 8));
59
NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r->num_ids));
60
for (cntr_ids_0 = 0; cntr_ids_0 < r->num_ids; cntr_ids_0++) {
61
NDR_CHECK(ndr_push_wbint_TransID(ndr, NDR_SCALARS, &r->ids[cntr_ids_0]));
63
NDR_CHECK(ndr_push_trailer_align(ndr, 8));
65
if (ndr_flags & NDR_BUFFERS) {
67
return NDR_ERR_SUCCESS;
70
static enum ndr_err_code ndr_pull_wbint_TransIDArray(struct ndr_pull *ndr, int ndr_flags, struct wbint_TransIDArray *r)
73
TALLOC_CTX *_mem_save_ids_0;
74
if (ndr_flags & NDR_SCALARS) {
75
NDR_CHECK(ndr_pull_array_size(ndr, &r->ids));
76
NDR_CHECK(ndr_pull_align(ndr, 8));
77
NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &r->num_ids));
78
NDR_PULL_ALLOC_N(ndr, r->ids, ndr_get_array_size(ndr, &r->ids));
79
_mem_save_ids_0 = NDR_PULL_GET_MEM_CTX(ndr);
80
NDR_PULL_SET_MEM_CTX(ndr, r->ids, 0);
81
for (cntr_ids_0 = 0; cntr_ids_0 < r->num_ids; cntr_ids_0++) {
82
NDR_CHECK(ndr_pull_wbint_TransID(ndr, NDR_SCALARS, &r->ids[cntr_ids_0]));
84
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ids_0, 0);
86
NDR_CHECK(ndr_check_array_size(ndr, (void*)&r->ids, r->num_ids));
88
NDR_CHECK(ndr_pull_trailer_align(ndr, 8));
90
if (ndr_flags & NDR_BUFFERS) {
92
return NDR_ERR_SUCCESS;
95
_PUBLIC_ void ndr_print_wbint_TransIDArray(struct ndr_print *ndr, const char *name, const struct wbint_TransIDArray *r)
98
ndr_print_struct(ndr, name, "wbint_TransIDArray");
99
if (r == NULL) { ndr_print_null(ndr); return; }
101
ndr_print_uint32(ndr, "num_ids", r->num_ids);
102
ndr->print(ndr, "%s: ARRAY(%d)", "ids", (int)r->num_ids);
104
for (cntr_ids_0=0;cntr_ids_0<r->num_ids;cntr_ids_0++) {
105
ndr_print_wbint_TransID(ndr, "ids", &r->ids[cntr_ids_0]);
8
111
_PUBLIC_ enum ndr_err_code ndr_push_wbint_userinfo(struct ndr_push *ndr, int ndr_flags, const struct wbint_userinfo *r)
10
113
if (ndr_flags & NDR_SCALARS) {
491
587
uint32_t cntr_userinfos_0;
492
588
ndr_print_struct(ndr, name, "wbint_userinfos");
589
if (r == NULL) { ndr_print_null(ndr); return; }
494
591
ndr_print_uint32(ndr, "num_userinfos", r->num_userinfos);
495
592
ndr->print(ndr, "%s: ARRAY(%d)", "userinfos", (int)r->num_userinfos);
497
594
for (cntr_userinfos_0=0;cntr_userinfos_0<r->num_userinfos;cntr_userinfos_0++) {
499
if (asprintf(&idx_0, "[%d]", cntr_userinfos_0) != -1) {
500
ndr_print_wbint_userinfo(ndr, "userinfos", &r->userinfos[cntr_userinfos_0]);
508
_PUBLIC_ enum ndr_err_code ndr_push_wbint_IdType(struct ndr_push *ndr, int ndr_flags, enum wbint_IdType r)
510
NDR_CHECK(ndr_push_enum_uint1632(ndr, NDR_SCALARS, r));
511
return NDR_ERR_SUCCESS;
514
_PUBLIC_ enum ndr_err_code ndr_pull_wbint_IdType(struct ndr_pull *ndr, int ndr_flags, enum wbint_IdType *r)
517
NDR_CHECK(ndr_pull_enum_uint1632(ndr, NDR_SCALARS, &v));
519
return NDR_ERR_SUCCESS;
522
_PUBLIC_ void ndr_print_wbint_IdType(struct ndr_print *ndr, const char *name, enum wbint_IdType r)
524
const char *val = NULL;
527
case WBINT_ID_TYPE_NOT_SPECIFIED: val = "WBINT_ID_TYPE_NOT_SPECIFIED"; break;
528
case WBINT_ID_TYPE_UID: val = "WBINT_ID_TYPE_UID"; break;
529
case WBINT_ID_TYPE_GID: val = "WBINT_ID_TYPE_GID"; break;
531
ndr_print_enum(ndr, name, "ENUM", val, r);
595
ndr_print_wbint_userinfo(ndr, "userinfos", &r->userinfos[cntr_userinfos_0]);
534
601
static enum ndr_err_code ndr_push_wbint_Ping(struct ndr_push *ndr, int flags, const struct wbint_Ping *r)
837
static enum ndr_err_code ndr_push_wbint_LookupSids(struct ndr_push *ndr, int flags, const struct wbint_LookupSids *r)
839
if (flags & NDR_IN) {
840
if (r->in.sids == NULL) {
841
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
843
NDR_CHECK(ndr_push_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
845
if (flags & NDR_OUT) {
846
if (r->out.domains == NULL) {
847
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
849
NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
850
if (r->out.names == NULL) {
851
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
853
NDR_CHECK(ndr_push_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
854
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
856
return NDR_ERR_SUCCESS;
859
static enum ndr_err_code ndr_pull_wbint_LookupSids(struct ndr_pull *ndr, int flags, struct wbint_LookupSids *r)
861
TALLOC_CTX *_mem_save_sids_0;
862
TALLOC_CTX *_mem_save_domains_0;
863
TALLOC_CTX *_mem_save_names_0;
864
if (flags & NDR_IN) {
867
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
868
NDR_PULL_ALLOC(ndr, r->in.sids);
870
_mem_save_sids_0 = NDR_PULL_GET_MEM_CTX(ndr);
871
NDR_PULL_SET_MEM_CTX(ndr, r->in.sids, LIBNDR_FLAG_REF_ALLOC);
872
NDR_CHECK(ndr_pull_lsa_SidArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.sids));
873
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sids_0, LIBNDR_FLAG_REF_ALLOC);
874
NDR_PULL_ALLOC(ndr, r->out.domains);
875
ZERO_STRUCTP(r->out.domains);
876
NDR_PULL_ALLOC(ndr, r->out.names);
877
ZERO_STRUCTP(r->out.names);
879
if (flags & NDR_OUT) {
880
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
881
NDR_PULL_ALLOC(ndr, r->out.domains);
883
_mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
884
NDR_PULL_SET_MEM_CTX(ndr, r->out.domains, LIBNDR_FLAG_REF_ALLOC);
885
NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.domains));
886
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
887
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
888
NDR_PULL_ALLOC(ndr, r->out.names);
890
_mem_save_names_0 = NDR_PULL_GET_MEM_CTX(ndr);
891
NDR_PULL_SET_MEM_CTX(ndr, r->out.names, LIBNDR_FLAG_REF_ALLOC);
892
NDR_CHECK(ndr_pull_lsa_TransNameArray(ndr, NDR_SCALARS|NDR_BUFFERS, r->out.names));
893
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_names_0, LIBNDR_FLAG_REF_ALLOC);
894
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
896
return NDR_ERR_SUCCESS;
899
_PUBLIC_ void ndr_print_wbint_LookupSids(struct ndr_print *ndr, const char *name, int flags, const struct wbint_LookupSids *r)
901
ndr_print_struct(ndr, name, "wbint_LookupSids");
902
if (r == NULL) { ndr_print_null(ndr); return; }
904
if (flags & NDR_SET_VALUES) {
905
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
907
if (flags & NDR_IN) {
908
ndr_print_struct(ndr, "in", "wbint_LookupSids");
910
ndr_print_ptr(ndr, "sids", r->in.sids);
912
ndr_print_lsa_SidArray(ndr, "sids", r->in.sids);
916
if (flags & NDR_OUT) {
917
ndr_print_struct(ndr, "out", "wbint_LookupSids");
919
ndr_print_ptr(ndr, "domains", r->out.domains);
921
ndr_print_lsa_RefDomainList(ndr, "domains", r->out.domains);
923
ndr_print_ptr(ndr, "names", r->out.names);
925
ndr_print_lsa_TransNameArray(ndr, "names", r->out.names);
927
ndr_print_NTSTATUS(ndr, "result", r->out.result);
768
933
static enum ndr_err_code ndr_push_wbint_LookupName(struct ndr_push *ndr, int flags, const struct wbint_LookupName *r)
770
935
if (flags & NDR_IN) {
1274
static enum ndr_err_code ndr_push_wbint_Sids2UnixIDs(struct ndr_push *ndr, int flags, const struct wbint_Sids2UnixIDs *r)
1276
if (flags & NDR_IN) {
1277
if (r->in.domains == NULL) {
1278
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1280
NDR_CHECK(ndr_push_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.domains));
1281
if (r->in.ids == NULL) {
1282
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1284
NDR_CHECK(ndr_push_wbint_TransIDArray(ndr, NDR_SCALARS, r->in.ids));
1286
if (flags & NDR_OUT) {
1287
if (r->out.ids == NULL) {
1288
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
1290
NDR_CHECK(ndr_push_wbint_TransIDArray(ndr, NDR_SCALARS, r->out.ids));
1291
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
1293
return NDR_ERR_SUCCESS;
1296
static enum ndr_err_code ndr_pull_wbint_Sids2UnixIDs(struct ndr_pull *ndr, int flags, struct wbint_Sids2UnixIDs *r)
1298
TALLOC_CTX *_mem_save_domains_0;
1299
TALLOC_CTX *_mem_save_ids_0;
1300
if (flags & NDR_IN) {
1301
ZERO_STRUCT(r->out);
1303
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1304
NDR_PULL_ALLOC(ndr, r->in.domains);
1306
_mem_save_domains_0 = NDR_PULL_GET_MEM_CTX(ndr);
1307
NDR_PULL_SET_MEM_CTX(ndr, r->in.domains, LIBNDR_FLAG_REF_ALLOC);
1308
NDR_CHECK(ndr_pull_lsa_RefDomainList(ndr, NDR_SCALARS|NDR_BUFFERS, r->in.domains));
1309
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_domains_0, LIBNDR_FLAG_REF_ALLOC);
1310
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1311
NDR_PULL_ALLOC(ndr, r->in.ids);
1313
_mem_save_ids_0 = NDR_PULL_GET_MEM_CTX(ndr);
1314
NDR_PULL_SET_MEM_CTX(ndr, r->in.ids, LIBNDR_FLAG_REF_ALLOC);
1315
NDR_CHECK(ndr_pull_wbint_TransIDArray(ndr, NDR_SCALARS, r->in.ids));
1316
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ids_0, LIBNDR_FLAG_REF_ALLOC);
1317
NDR_PULL_ALLOC(ndr, r->out.ids);
1318
*r->out.ids = *r->in.ids;
1320
if (flags & NDR_OUT) {
1321
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
1322
NDR_PULL_ALLOC(ndr, r->out.ids);
1324
_mem_save_ids_0 = NDR_PULL_GET_MEM_CTX(ndr);
1325
NDR_PULL_SET_MEM_CTX(ndr, r->out.ids, LIBNDR_FLAG_REF_ALLOC);
1326
NDR_CHECK(ndr_pull_wbint_TransIDArray(ndr, NDR_SCALARS, r->out.ids));
1327
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_ids_0, LIBNDR_FLAG_REF_ALLOC);
1328
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
1330
return NDR_ERR_SUCCESS;
1333
_PUBLIC_ void ndr_print_wbint_Sids2UnixIDs(struct ndr_print *ndr, const char *name, int flags, const struct wbint_Sids2UnixIDs *r)
1335
ndr_print_struct(ndr, name, "wbint_Sids2UnixIDs");
1336
if (r == NULL) { ndr_print_null(ndr); return; }
1338
if (flags & NDR_SET_VALUES) {
1339
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
1341
if (flags & NDR_IN) {
1342
ndr_print_struct(ndr, "in", "wbint_Sids2UnixIDs");
1344
ndr_print_ptr(ndr, "domains", r->in.domains);
1346
ndr_print_lsa_RefDomainList(ndr, "domains", r->in.domains);
1348
ndr_print_ptr(ndr, "ids", r->in.ids);
1350
ndr_print_wbint_TransIDArray(ndr, "ids", r->in.ids);
1354
if (flags & NDR_OUT) {
1355
ndr_print_struct(ndr, "out", "wbint_Sids2UnixIDs");
1357
ndr_print_ptr(ndr, "ids", r->out.ids);
1359
ndr_print_wbint_TransIDArray(ndr, "ids", r->out.ids);
1361
ndr_print_NTSTATUS(ndr, "result", r->out.result);
1106
1367
static enum ndr_err_code ndr_push_wbint_Uid2Sid(struct ndr_push *ndr, int flags, const struct wbint_Uid2Sid *r)
1108
1369
if (flags & NDR_IN) {
2340
static enum ndr_err_code ndr_push_wbint_SetMapping(struct ndr_push *ndr, int flags, const struct wbint_SetMapping *r)
2342
if (flags & NDR_IN) {
2343
if (r->in.sid == NULL) {
2344
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2346
NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, r->in.sid));
2347
NDR_CHECK(ndr_push_wbint_IdType(ndr, NDR_SCALARS, r->in.type));
2348
NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.id));
2350
if (flags & NDR_OUT) {
2351
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
2353
return NDR_ERR_SUCCESS;
2356
static enum ndr_err_code ndr_pull_wbint_SetMapping(struct ndr_pull *ndr, int flags, struct wbint_SetMapping *r)
2358
TALLOC_CTX *_mem_save_sid_0;
2359
if (flags & NDR_IN) {
2360
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2361
NDR_PULL_ALLOC(ndr, r->in.sid);
2363
_mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
2364
NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
2365
NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, r->in.sid));
2366
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
2367
NDR_CHECK(ndr_pull_wbint_IdType(ndr, NDR_SCALARS, &r->in.type));
2368
NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.id));
2370
if (flags & NDR_OUT) {
2371
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
2373
return NDR_ERR_SUCCESS;
2376
_PUBLIC_ void ndr_print_wbint_SetMapping(struct ndr_print *ndr, const char *name, int flags, const struct wbint_SetMapping *r)
2378
ndr_print_struct(ndr, name, "wbint_SetMapping");
2380
if (flags & NDR_SET_VALUES) {
2381
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2383
if (flags & NDR_IN) {
2384
ndr_print_struct(ndr, "in", "wbint_SetMapping");
2386
ndr_print_ptr(ndr, "sid", r->in.sid);
2388
ndr_print_dom_sid(ndr, "sid", r->in.sid);
2390
ndr_print_wbint_IdType(ndr, "type", r->in.type);
2391
ndr_print_hyper(ndr, "id", r->in.id);
2394
if (flags & NDR_OUT) {
2395
ndr_print_struct(ndr, "out", "wbint_SetMapping");
2397
ndr_print_NTSTATUS(ndr, "result", r->out.result);
2403
static enum ndr_err_code ndr_push_wbint_RemoveMapping(struct ndr_push *ndr, int flags, const struct wbint_RemoveMapping *r)
2405
if (flags & NDR_IN) {
2406
if (r->in.sid == NULL) {
2407
return ndr_push_error(ndr, NDR_ERR_INVALID_POINTER, "NULL [ref] pointer");
2409
NDR_CHECK(ndr_push_dom_sid(ndr, NDR_SCALARS, r->in.sid));
2410
NDR_CHECK(ndr_push_wbint_IdType(ndr, NDR_SCALARS, r->in.type));
2411
NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.id));
2413
if (flags & NDR_OUT) {
2414
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
2416
return NDR_ERR_SUCCESS;
2419
static enum ndr_err_code ndr_pull_wbint_RemoveMapping(struct ndr_pull *ndr, int flags, struct wbint_RemoveMapping *r)
2421
TALLOC_CTX *_mem_save_sid_0;
2422
if (flags & NDR_IN) {
2423
if (ndr->flags & LIBNDR_FLAG_REF_ALLOC) {
2424
NDR_PULL_ALLOC(ndr, r->in.sid);
2426
_mem_save_sid_0 = NDR_PULL_GET_MEM_CTX(ndr);
2427
NDR_PULL_SET_MEM_CTX(ndr, r->in.sid, LIBNDR_FLAG_REF_ALLOC);
2428
NDR_CHECK(ndr_pull_dom_sid(ndr, NDR_SCALARS, r->in.sid));
2429
NDR_PULL_SET_MEM_CTX(ndr, _mem_save_sid_0, LIBNDR_FLAG_REF_ALLOC);
2430
NDR_CHECK(ndr_pull_wbint_IdType(ndr, NDR_SCALARS, &r->in.type));
2431
NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.id));
2433
if (flags & NDR_OUT) {
2434
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
2436
return NDR_ERR_SUCCESS;
2439
_PUBLIC_ void ndr_print_wbint_RemoveMapping(struct ndr_print *ndr, const char *name, int flags, const struct wbint_RemoveMapping *r)
2441
ndr_print_struct(ndr, name, "wbint_RemoveMapping");
2443
if (flags & NDR_SET_VALUES) {
2444
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2446
if (flags & NDR_IN) {
2447
ndr_print_struct(ndr, "in", "wbint_RemoveMapping");
2449
ndr_print_ptr(ndr, "sid", r->in.sid);
2451
ndr_print_dom_sid(ndr, "sid", r->in.sid);
2453
ndr_print_wbint_IdType(ndr, "type", r->in.type);
2454
ndr_print_hyper(ndr, "id", r->in.id);
2457
if (flags & NDR_OUT) {
2458
ndr_print_struct(ndr, "out", "wbint_RemoveMapping");
2460
ndr_print_NTSTATUS(ndr, "result", r->out.result);
2466
static enum ndr_err_code ndr_push_wbint_SetHWM(struct ndr_push *ndr, int flags, const struct wbint_SetHWM *r)
2468
if (flags & NDR_IN) {
2469
NDR_CHECK(ndr_push_wbint_IdType(ndr, NDR_SCALARS, r->in.type));
2470
NDR_CHECK(ndr_push_hyper(ndr, NDR_SCALARS, r->in.id));
2472
if (flags & NDR_OUT) {
2473
NDR_CHECK(ndr_push_NTSTATUS(ndr, NDR_SCALARS, r->out.result));
2475
return NDR_ERR_SUCCESS;
2478
static enum ndr_err_code ndr_pull_wbint_SetHWM(struct ndr_pull *ndr, int flags, struct wbint_SetHWM *r)
2480
if (flags & NDR_IN) {
2481
NDR_CHECK(ndr_pull_wbint_IdType(ndr, NDR_SCALARS, &r->in.type));
2482
NDR_CHECK(ndr_pull_hyper(ndr, NDR_SCALARS, &r->in.id));
2484
if (flags & NDR_OUT) {
2485
NDR_CHECK(ndr_pull_NTSTATUS(ndr, NDR_SCALARS, &r->out.result));
2487
return NDR_ERR_SUCCESS;
2490
_PUBLIC_ void ndr_print_wbint_SetHWM(struct ndr_print *ndr, const char *name, int flags, const struct wbint_SetHWM *r)
2492
ndr_print_struct(ndr, name, "wbint_SetHWM");
2494
if (flags & NDR_SET_VALUES) {
2495
ndr->flags |= LIBNDR_PRINT_SET_VALUES;
2497
if (flags & NDR_IN) {
2498
ndr_print_struct(ndr, "in", "wbint_SetHWM");
2500
ndr_print_wbint_IdType(ndr, "type", r->in.type);
2501
ndr_print_hyper(ndr, "id", r->in.id);
2504
if (flags & NDR_OUT) {
2505
ndr_print_struct(ndr, "out", "wbint_SetHWM");
2507
ndr_print_NTSTATUS(ndr, "result", r->out.result);
2513
2617
static const struct ndr_interface_call wbint_calls[] = {
2677
2819
(ndr_push_flags_fn_t) ndr_push_wbint_PingDc,
2678
2820
(ndr_pull_flags_fn_t) ndr_pull_wbint_PingDc,
2679
2821
(ndr_print_function_t) ndr_print_wbint_PingDc,
2684
sizeof(struct wbint_SetMapping),
2685
(ndr_push_flags_fn_t) ndr_push_wbint_SetMapping,
2686
(ndr_pull_flags_fn_t) ndr_pull_wbint_SetMapping,
2687
(ndr_print_function_t) ndr_print_wbint_SetMapping,
2691
"wbint_RemoveMapping",
2692
sizeof(struct wbint_RemoveMapping),
2693
(ndr_push_flags_fn_t) ndr_push_wbint_RemoveMapping,
2694
(ndr_pull_flags_fn_t) ndr_pull_wbint_RemoveMapping,
2695
(ndr_print_function_t) ndr_print_wbint_RemoveMapping,
2700
sizeof(struct wbint_SetHWM),
2701
(ndr_push_flags_fn_t) ndr_push_wbint_SetHWM,
2702
(ndr_pull_flags_fn_t) ndr_pull_wbint_SetHWM,
2703
(ndr_print_function_t) ndr_print_wbint_SetHWM,
2706
{ NULL, 0, NULL, NULL, NULL, false }
2825
{ NULL, 0, NULL, NULL, NULL }
2709
2828
static const char * const wbint_endpoint_strings[] = {