passdb: Introduce xid_to_sid
authorVolker Lendecke <vl@samba.org>
Tue, 26 Feb 2019 14:10:21 +0000 (15:10 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 28 Feb 2019 12:57:24 +0000 (12:57 +0000)
commit92f27ebb14c0c18b1d0fd49544ad851aeb14781c
tree97d0c71e81709bdb7c06e51367568f4617c6bb13
parentef706a3e63b3e25edd27e0f99c3e2d8ff7209cb6
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
source3/passdb/lookup_sid.c
source3/passdb/lookup_sid.h