Changeset 30 for trunk/samba/source/nsswitch/idmap_util.c
- Timestamp:
- Apr 25, 2007, 9:44:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/nsswitch/idmap_util.c
r1 r30 106 106 107 107 map.sid = sid; 108 map.xid.type = ID_TYPE_UID; 108 109 109 110 maps[0] = ↦ … … 112 113 ret = idmap_sids_to_unixids(maps); 113 114 if ( ! NT_STATUS_IS_OK(ret)) { 114 DEBUG(10, ("error mapping sid [%s] to uid\n", sid_string_static(sid))); 115 DEBUG(10, ("error mapping sid [%s] to uid\n", 116 sid_string_static(sid))); 115 117 return ret; 116 118 } 117 119 118 120 if ((map.status != ID_MAPPED) || (map.xid.type != ID_TYPE_UID)) { 119 DEBUG(10, ("sid [%s] not mapped to an uid [%u,%u,%u]\n", sid_string_static(sid), map.status, map.xid.type, map.xid.id)); 121 DEBUG(10, ("sid [%s] not mapped to an uid [%u,%u,%u]\n", 122 sid_string_static(sid), 123 map.status, 124 map.xid.type, 125 map.xid.id)); 120 126 return NT_STATUS_NONE_MAPPED; 121 127 } … … 140 146 141 147 map.sid = sid; 148 map.xid.type = ID_TYPE_GID; 142 149 143 150 maps[0] = ↦ … … 146 153 ret = idmap_sids_to_unixids(maps); 147 154 if ( ! NT_STATUS_IS_OK(ret)) { 148 DEBUG(10, ("error mapping sid [%s] to gid\n", sid_string_static(sid))); 155 DEBUG(10, ("error mapping sid [%s] to gid\n", 156 sid_string_static(sid))); 149 157 return ret; 150 158 } 151 159 152 160 if ((map.status != ID_MAPPED) || (map.xid.type != ID_TYPE_GID)) { 153 DEBUG(10, ("sid [%s] not mapped to an gid [%u,%u,%u]\n", sid_string_static(sid), map.status, map.xid.type, map.xid.id)); 161 DEBUG(10, ("sid [%s] not mapped to an gid [%u,%u,%u]\n", 162 sid_string_static(sid), 163 map.status, 164 map.xid.type, 165 map.xid.id)); 154 166 return NT_STATUS_NONE_MAPPED; 155 167 }
Note: See TracChangeset
for help on using the changeset viewer.