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)
committerVolker Lendecke <vl@samba.org>
Thu, 11 Mar 2021 07:28:37 +0000 (07:28 +0000)
commitdb2afa57e4aa926b478db1be4d693edbdf4d2a23
tree679e06d37f1880bfe7dcd6e074188d0d329f2e4d
parent65510204d4123b1825ea57607e84ba50f8ce3baf
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>
source3/winbindd/winbindd_dual_srv.c