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_sid2uid.c

    r414 r745  
    2424#include "winbind/wb_server.h"
    2525#include "smbd/service_task.h"
    26 #include "winbind/wb_helper.h"
    2726#include "libcli/security/security.h"
    28 #include "winbind/idmap.h"
    2927
    3028struct sid2uid_state {
     
    4139        struct composite_context *result, *ctx;
    4240        struct sid2uid_state *state;
    43         struct id_mapping *ids;
     41        struct id_map *ids;
    4442
    4543        DEBUG(5, ("wb_sid2uid_send called\n"));
     
    5553        state->service = service;
    5654
    57         ids = talloc(result, struct id_mapping);
     55        ids = talloc(result, struct id_map);
    5856        if (composite_nomem(ids, result)) return result;
    5957
     
    7371                                                      struct sid2uid_state);
    7472
    75         struct id_mapping *ids = NULL;
     73        struct id_map *ids = NULL;
    7674
    7775        state->ctx->status = wb_sids2xids_recv(ctx, &ids);
    7876        if (!composite_is_ok(state->ctx)) return;
    7977
    80         if (!NT_STATUS_IS_OK(ids->status)) {
    81                 composite_error(state->ctx, ids->status);
     78        if (ids->status != ID_MAPPED) {
     79                composite_error(state->ctx, NT_STATUS_UNSUCCESSFUL);
    8280                return;
    8381        }
    8482
    85         if (ids->unixid->type == ID_TYPE_BOTH ||
    86             ids->unixid->type == ID_TYPE_UID) {
    87                 state->uid = ids->unixid->id;
     83        if (ids->xid.type == ID_TYPE_BOTH ||
     84            ids->xid.type == ID_TYPE_UID) {
     85                state->uid = ids->xid.id;
    8886                composite_done(state->ctx);
    8987        } else {
Note: See TracChangeset for help on using the changeset viewer.