mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
winbind: Only use unixid2sid mapping when module reports ID_MAPPED
Only consider a mapping to be valid when the idmap module reports ID_MAPPED. Otherwise return the null SID. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14663 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
65510204d4
commit
db2afa57e4
@ -283,8 +283,10 @@ NTSTATUS _wbint_UnixIDs2Sids(struct pipes_struct *p,
|
||||
}
|
||||
|
||||
for (i=0; i<r->in.num_ids; i++) {
|
||||
r->out.xids[i] = maps[i]->xid;
|
||||
sid_copy(&r->out.sids[i], maps[i]->sid);
|
||||
if (maps[i]->status == ID_MAPPED) {
|
||||
r->out.xids[i] = maps[i]->xid;
|
||||
sid_copy(&r->out.sids[i], maps[i]->sid);
|
||||
}
|
||||
}
|
||||
|
||||
TALLOC_FREE(maps);
|
||||
|
Loading…
Reference in New Issue
Block a user