mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
idmap: centrally check that unix IDs returned by the idmap backends are in range
Note: in the long run, it might be good to move this kind of exit check (before handing the result back to the client) to the parent winbindd code. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12155 Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Aug 17 01:21:39 CEST 2016 on sn-devel-144
This commit is contained in:
parent
c21976d4b1
commit
b2bf61307c
@ -189,6 +189,10 @@ NTSTATUS _wbint_Sids2UnixIDs(struct pipes_struct *p,
|
||||
for (i=0; i<num_ids; i++) {
|
||||
struct id_map *m = id_map_ptrs[i];
|
||||
|
||||
if (!idmap_unix_id_is_in_range(m->xid.id, dom)) {
|
||||
m->status = ID_UNMAPPED;
|
||||
}
|
||||
|
||||
if (m->status == ID_MAPPED) {
|
||||
ids[i].xid = m->xid;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user