Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source4/winbind/wb_gid2sid.c

    r414 r745  
    2424#include "winbind/wb_server.h"
    2525#include "smbd/service_task.h"
    26 #include "winbind/wb_helper.h"
    27 #include "libcli/security/proto.h"
    28 #include "winbind/idmap.h"
    2926
    3027struct gid2sid_state {
     
    4138        struct composite_context *result, *ctx;
    4239        struct gid2sid_state *state;
    43         struct unixid *unixid;
    44         struct id_mapping *ids;
     40        struct id_map *ids;
    4541
    4642        DEBUG(5, ("wb_gid2sid_send called\n"));
     
    5652        state->service = service;
    5753
    58         unixid = talloc(result, struct unixid);
    59         if (composite_nomem(unixid, result)) return result;
    60         unixid->id = gid;
    61         unixid->type = ID_TYPE_GID;
    62 
    63         ids = talloc(result, struct id_mapping);
     54        ids = talloc(result, struct id_map);
    6455        if (composite_nomem(ids, result)) return result;
    65         ids->unixid = unixid;
     56        ids->xid.id = gid;
     57        ids->xid.type = ID_TYPE_GID;
    6658        ids->sid = NULL;
    6759
     
    7769        struct gid2sid_state *state = talloc_get_type(ctx->async.private_data,
    7870                                                      struct gid2sid_state);
    79         struct id_mapping *ids = NULL;
     71        struct id_map *ids = NULL;
    8072        state->ctx->status = wb_xids2sids_recv(ctx, &ids);
    8173        if (!composite_is_ok(state->ctx)) return;
    8274
    83         if (!NT_STATUS_IS_OK(ids->status)) {
    84                 composite_error(state->ctx, ids->status);
     75        if (ids->status != ID_MAPPED) {
     76                composite_error(state->ctx, NT_STATUS_UNSUCCESSFUL);
    8577                return;
    8678        }
Note: See TracChangeset for help on using the changeset viewer.