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>
Tue, 12 Mar 2019 11:25:43 +0000 (11:25 +0000)
commit4fd495159d183fa9fd2e74bb74893a842e8cbcad
tree43220b8f0801607d38ef9ab3f65c8bd95cd9fdad
parente8bb1f65cd12f3243e5b965e1e9951567cd3ed48
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