Changeset 745 for trunk/server/source4/winbind/wb_sid2uid.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_sid2uid.c
r414 r745 24 24 #include "winbind/wb_server.h" 25 25 #include "smbd/service_task.h" 26 #include "winbind/wb_helper.h"27 26 #include "libcli/security/security.h" 28 #include "winbind/idmap.h"29 27 30 28 struct sid2uid_state { … … 41 39 struct composite_context *result, *ctx; 42 40 struct sid2uid_state *state; 43 struct id_map ping*ids;41 struct id_map *ids; 44 42 45 43 DEBUG(5, ("wb_sid2uid_send called\n")); … … 55 53 state->service = service; 56 54 57 ids = talloc(result, struct id_map ping);55 ids = talloc(result, struct id_map); 58 56 if (composite_nomem(ids, result)) return result; 59 57 … … 73 71 struct sid2uid_state); 74 72 75 struct id_map ping*ids = NULL;73 struct id_map *ids = NULL; 76 74 77 75 state->ctx->status = wb_sids2xids_recv(ctx, &ids); 78 76 if (!composite_is_ok(state->ctx)) return; 79 77 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); 82 80 return; 83 81 } 84 82 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; 88 86 composite_done(state->ctx); 89 87 } else {
Note:
See TracChangeset
for help on using the changeset viewer.