Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source3/lib/netapi/user.c

    r860 r988  
    6969        }
    7070        if (infoX->usriX_password_age) {
    71                 fields_present |= SAMR_FIELD_FORCE_PWD_CHANGE;
     71                fields_present |= SAMR_FIELD_;
    7272        }
    7373        if (infoX->usriX_full_name) {
     
    401401
    402402        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    403                                    &ndr_table_samr.syntax_id,
     403                                   &ndr_table_samr,
    404404                                   &pipe_cli);
    405405        if (!W_ERROR_IS_OK(werr)) {
     
    553553
    554554        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    555                                    &ndr_table_samr.syntax_id,
     555                                   &ndr_table_samr,
    556556                                   &pipe_cli);
    557557
     
    576576                                        &connect_handle,
    577577                                        SAMR_DOMAIN_ACCESS_OPEN_ACCOUNT,
    578                                         CONST_DISCARD(struct dom_sid *, &global_sid_Builtin),
     578                                        , &global_sid_Builtin),
    579579                                        &builtin_handle,
    580580                                        &result);
     
    12021202
    12031203        switch (level) {
    1204                 case 0:
    1205                         /* already returned above */
    1206                         break;
    12071204                case 1:
    12081205                        status = info21_to_USER_INFO_1(mem_ctx, info21, &info1);
     
    13231320
    13241321        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    1325                                    &ndr_table_samr.syntax_id,
     1322                                   &ndr_table_samr,
    13261323                                   &pipe_cli);
    13271324        if (!W_ERROR_IS_OK(werr)) {
     
    14451442        int i;
    14461443
    1447         user = TALLOC_ZERO_ARRAY(mem_ctx,
     1444        user = (mem_ctx,
    14481445                                 struct NET_DISPLAY_USER,
    14491446                                 info->count);
     
    14891486        int i;
    14901487
    1491         machine = TALLOC_ZERO_ARRAY(mem_ctx,
     1488        machine = (mem_ctx,
    14921489                                    struct NET_DISPLAY_MACHINE,
    14931490                                    info->count);
     
    15311528        int i;
    15321529
    1533         group = TALLOC_ZERO_ARRAY(mem_ctx,
     1530        group = (mem_ctx,
    15341531                                  struct NET_DISPLAY_GROUP,
    15351532                                  info->count);
     
    16311628
    16321629        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    1633                                    &ndr_table_samr.syntax_id,
     1630                                   &ndr_table_samr,
    16341631                                   &pipe_cli);
    16351632        if (!W_ERROR_IS_OK(werr)) {
     
    17651762
    17661763        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    1767                                    &ndr_table_samr.syntax_id,
     1764                                   &ndr_table_samr,
    17681765                                   &pipe_cli);
    17691766        if (!W_ERROR_IS_OK(werr)) {
     
    19051902                case 1024:
    19061903                        user_mask = SAMR_USER_ACCESS_SET_LOC_COM;
     1904
    19071905                case 1051:
    19081906                        user_mask = SAMR_USER_ACCESS_SET_ATTRIBUTES |
     
    19361934
    19371935        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    1938                                    &ndr_table_samr.syntax_id,
     1936                                   &ndr_table_samr,
    19391937                                   &pipe_cli);
    19401938        if (!W_ERROR_IS_OK(werr)) {
     
    23952393
    23962394        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    2397                                    &ndr_table_samr.syntax_id,
     2395                                   &ndr_table_samr,
    23982396                                   &pipe_cli);
    23992397        if (!W_ERROR_IS_OK(werr)) {
     
    28802878
    28812879        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    2882                                    &ndr_table_samr.syntax_id,
     2880                                   &ndr_table_samr,
    28832881                                   &pipe_cli);
    28842882        if (!W_ERROR_IS_OK(werr)) {
     
    30153013
    30163014        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    3017                                    &ndr_table_samr.syntax_id,
     3015                                   &ndr_table_samr,
    30183016                                   &pipe_cli);
    30193017        if (!W_ERROR_IS_OK(werr)) {
     
    31783176
    31793177        uint32_t *member_rids = NULL;
    3180         size_t num_member_rids = 0;
    31813178
    31823179        struct GROUP_USERS_INFO_0 *i0 = NULL;
     
    31923189        ZERO_STRUCT(connect_handle);
    31933190        ZERO_STRUCT(domain_handle);
     3191
    31943192
    31953193        if (!r->in.buffer) {
     
    32063204
    32073205        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    3208                                    &ndr_table_samr.syntax_id,
     3206                                   &ndr_table_samr,
    32093207                                   &pipe_cli);
    32103208        if (!W_ERROR_IS_OK(werr)) {
     
    33203318
    33213319        member_rids = group_rids.ids;
    3322         num_member_rids = group_rids.count;
    33233320
    33243321        status = dcerpc_samr_GetGroupsForUser(b, talloc_tos(),
     
    35483545
    35493546        werr = libnetapi_open_pipe(ctx, r->in.server_name,
    3550                                    &ndr_table_samr.syntax_id,
     3547                                   &ndr_table_samr,
    35513548                                   &pipe_cli);
    35523549        if (!W_ERROR_IS_OK(werr)) {
     
    36393636
    36403637        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);
    36423639        if (!sid_array.sids) {
    36433640                werr = WERR_NOMEM;
Note: See TracChangeset for help on using the changeset viewer.