passdb: Introduce xid_to_sid
authorVolker Lendecke <vl@samba.org>
Tue, 26 Feb 2019 14:10:21 +0000 (15:10 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Mar 2019 08:34:15 +0000 (08:34 +0000)
commit8c0268a5fec09e546b98cc88f8fce28dc4543d36
treee4b4df2f7d1191a0e913eb42af97690ba4ce59ff
parent10a0d77f17caf49ba35f2f23974c9518c2f37c83
passdb: Introduce xid_to_sid

This explicitly avoids the legacy_[ug]id_to_sid calls, which create
long-term cache entries to S-1-22-x-y if anthing fails. We can't do
this, because this will turn temporary winbind communication failures
into long-term problems: A short hickup in winbind_uid_to_sid will
create a mapping to S-1-22-1-uid for a week. It should be up to the
lower layers to do the caching.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13813
(cherry picked from commit 92f27ebb14c0c18b1d0fd49544ad851aeb14781c)
source3/passdb/lookup_sid.c
source3/passdb/lookup_sid.h