smbd: Avoid sending S-1-22- to winbind
authorVolker Lendecke <vl@samba.org>
Wed, 6 Feb 2019 16:02:53 +0000 (17:02 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 8 Feb 2019 07:51:19 +0000 (08:51 +0100)
commitc516394ed90a52bc8712de845a16c7293ef7fbda
treedfb09c2ab40cd6abd4ebbd3aa936091d254c92fd
parent65c05357309c6e366d1731ced27c347f29b3f281
smbd: Avoid sending S-1-22- to winbind

Sending S-1-22-x to a typeless sids2xids call will make winbind prime
the reverse xids2sids cache, which is very likely the wrong mapping. Add
a check that avoids bothering the winbind pipe when it's clear this
can't work anyway.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: David Mulder <dmulder@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/passdb/lookup_sid.c