Changeset 988 for vendor/current/source3/lib/netapi/user.c
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- File:
-
- 1 edited
-
vendor/current/source3/lib/netapi/user.c (modified) (22 diffs)
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/lib/netapi/user.c
r860 r988 69 69 } 70 70 if (infoX->usriX_password_age) { 71 fields_present |= SAMR_FIELD_ FORCE_PWD_CHANGE;71 fields_present |= SAMR_FIELD_; 72 72 } 73 73 if (infoX->usriX_full_name) { … … 401 401 402 402 werr = libnetapi_open_pipe(ctx, r->in.server_name, 403 &ndr_table_samr .syntax_id,403 &ndr_table_samr, 404 404 &pipe_cli); 405 405 if (!W_ERROR_IS_OK(werr)) { … … 553 553 554 554 werr = libnetapi_open_pipe(ctx, r->in.server_name, 555 &ndr_table_samr .syntax_id,555 &ndr_table_samr, 556 556 &pipe_cli); 557 557 … … 576 576 &connect_handle, 577 577 SAMR_DOMAIN_ACCESS_OPEN_ACCOUNT, 578 CONST_DISCARD(struct dom_sid *, &global_sid_Builtin),578 , &global_sid_Builtin), 579 579 &builtin_handle, 580 580 &result); … … 1202 1202 1203 1203 switch (level) { 1204 case 0:1205 /* already returned above */1206 break;1207 1204 case 1: 1208 1205 status = info21_to_USER_INFO_1(mem_ctx, info21, &info1); … … 1323 1320 1324 1321 werr = libnetapi_open_pipe(ctx, r->in.server_name, 1325 &ndr_table_samr .syntax_id,1322 &ndr_table_samr, 1326 1323 &pipe_cli); 1327 1324 if (!W_ERROR_IS_OK(werr)) { … … 1445 1442 int i; 1446 1443 1447 user = TALLOC_ZERO_ARRAY(mem_ctx,1444 user = (mem_ctx, 1448 1445 struct NET_DISPLAY_USER, 1449 1446 info->count); … … 1489 1486 int i; 1490 1487 1491 machine = TALLOC_ZERO_ARRAY(mem_ctx,1488 machine = (mem_ctx, 1492 1489 struct NET_DISPLAY_MACHINE, 1493 1490 info->count); … … 1531 1528 int i; 1532 1529 1533 group = TALLOC_ZERO_ARRAY(mem_ctx,1530 group = (mem_ctx, 1534 1531 struct NET_DISPLAY_GROUP, 1535 1532 info->count); … … 1631 1628 1632 1629 werr = libnetapi_open_pipe(ctx, r->in.server_name, 1633 &ndr_table_samr .syntax_id,1630 &ndr_table_samr, 1634 1631 &pipe_cli); 1635 1632 if (!W_ERROR_IS_OK(werr)) { … … 1765 1762 1766 1763 werr = libnetapi_open_pipe(ctx, r->in.server_name, 1767 &ndr_table_samr .syntax_id,1764 &ndr_table_samr, 1768 1765 &pipe_cli); 1769 1766 if (!W_ERROR_IS_OK(werr)) { … … 1905 1902 case 1024: 1906 1903 user_mask = SAMR_USER_ACCESS_SET_LOC_COM; 1904 1907 1905 case 1051: 1908 1906 user_mask = SAMR_USER_ACCESS_SET_ATTRIBUTES | … … 1936 1934 1937 1935 werr = libnetapi_open_pipe(ctx, r->in.server_name, 1938 &ndr_table_samr .syntax_id,1936 &ndr_table_samr, 1939 1937 &pipe_cli); 1940 1938 if (!W_ERROR_IS_OK(werr)) { … … 2395 2393 2396 2394 werr = libnetapi_open_pipe(ctx, r->in.server_name, 2397 &ndr_table_samr .syntax_id,2395 &ndr_table_samr, 2398 2396 &pipe_cli); 2399 2397 if (!W_ERROR_IS_OK(werr)) { … … 2880 2878 2881 2879 werr = libnetapi_open_pipe(ctx, r->in.server_name, 2882 &ndr_table_samr .syntax_id,2880 &ndr_table_samr, 2883 2881 &pipe_cli); 2884 2882 if (!W_ERROR_IS_OK(werr)) { … … 3015 3013 3016 3014 werr = libnetapi_open_pipe(ctx, r->in.server_name, 3017 &ndr_table_samr .syntax_id,3015 &ndr_table_samr, 3018 3016 &pipe_cli); 3019 3017 if (!W_ERROR_IS_OK(werr)) { … … 3178 3176 3179 3177 uint32_t *member_rids = NULL; 3180 size_t num_member_rids = 0;3181 3178 3182 3179 struct GROUP_USERS_INFO_0 *i0 = NULL; … … 3192 3189 ZERO_STRUCT(connect_handle); 3193 3190 ZERO_STRUCT(domain_handle); 3191 3194 3192 3195 3193 if (!r->in.buffer) { … … 3206 3204 3207 3205 werr = libnetapi_open_pipe(ctx, r->in.server_name, 3208 &ndr_table_samr .syntax_id,3206 &ndr_table_samr, 3209 3207 &pipe_cli); 3210 3208 if (!W_ERROR_IS_OK(werr)) { … … 3320 3318 3321 3319 member_rids = group_rids.ids; 3322 num_member_rids = group_rids.count;3323 3320 3324 3321 status = dcerpc_samr_GetGroupsForUser(b, talloc_tos(), … … 3548 3545 3549 3546 werr = libnetapi_open_pipe(ctx, r->in.server_name, 3550 &ndr_table_samr .syntax_id,3547 &ndr_table_samr, 3551 3548 &pipe_cli); 3552 3549 if (!W_ERROR_IS_OK(werr)) { … … 3639 3636 3640 3637 sid_array.num_sids = rid_array->count + 1; 3641 sid_array.sids = TALLOC_ARRAY(ctx, struct lsa_SidPtr, sid_array.num_sids);3638 sid_array.sids = (ctx, struct lsa_SidPtr, sid_array.num_sids); 3642 3639 if (!sid_array.sids) { 3643 3640 werr = WERR_NOMEM;
Note:
See TracChangeset
for help on using the changeset viewer.
