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 10:13:54 +0000 (10:13 +0000)
commite7b1ee061eaa335d70dc354dfb3700f8344274c9
tree1a076bc86269cf78a89aeedb308fdc00d2fbc1e1
parent6b8226b7355ca7c290d859e5cdbac7d72b24a3c1
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