Changeset 745 for trunk/server/source4/winbind/wb_gid2sid.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source4/winbind/wb_gid2sid.c
r414 r745 24 24 #include "winbind/wb_server.h" 25 25 #include "smbd/service_task.h" 26 #include "winbind/wb_helper.h"27 #include "libcli/security/proto.h"28 #include "winbind/idmap.h"29 26 30 27 struct gid2sid_state { … … 41 38 struct composite_context *result, *ctx; 42 39 struct gid2sid_state *state; 43 struct unixid *unixid; 44 struct id_mapping *ids; 40 struct id_map *ids; 45 41 46 42 DEBUG(5, ("wb_gid2sid_send called\n")); … … 56 52 state->service = service; 57 53 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); 64 55 if (composite_nomem(ids, result)) return result; 65 ids->unixid = unixid; 56 ids->xid.id = gid; 57 ids->xid.type = ID_TYPE_GID; 66 58 ids->sid = NULL; 67 59 … … 77 69 struct gid2sid_state *state = talloc_get_type(ctx->async.private_data, 78 70 struct gid2sid_state); 79 struct id_map ping*ids = NULL;71 struct id_map *ids = NULL; 80 72 state->ctx->status = wb_xids2sids_recv(ctx, &ids); 81 73 if (!composite_is_ok(state->ctx)) return; 82 74 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); 85 77 return; 86 78 }
Note:
See TracChangeset
for help on using the changeset viewer.