winbind: Only use unixid2sid mapping when module reports ID_MAPPED
authorChristof Schmitt <cs@samba.org>
Fri, 5 Mar 2021 22:48:29 +0000 (15:48 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 31 Mar 2021 09:22:17 +0000 (09:22 +0000)
commit3aa06edf38bc4002f031476baa50712fd1a67f4d
tree56654be53e59a40f610ca2bdb83cb79d9f8e746c
parentf2be1673edee566088df92e2b9ecbe1678293780
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>
(cherry picked from commit db2afa57e4aa926b478db1be4d693edbdf4d2a23)
source3/winbindd/winbindd_dual_srv.c