lib: Introduce winbind_xid_to_sid
authorVolker Lendecke <vl@samba.org>
Tue, 26 Feb 2019 13:45:32 +0000 (14:45 +0100)
committerVolker Lendecke <vl@samba.org>
Thu, 28 Feb 2019 12:57:24 +0000 (12:57 +0000)
commitef706a3e63b3e25edd27e0f99c3e2d8ff7209cb6
tree8d7c8d2ae0a2739d74c1c200c53539868ef54d27
parentbc9824bd42d9370279819ea0d927e236f6041324
lib: Introduce winbind_xid_to_sid

This does not merge a winbind communication error into
"global_sid_NULL" (S-1-0-0), which by the way non-intuitively does not
go along with is_null_sid(). Instead, this just touches the output sid
when winbind returned success. This success might well be a negative
mapping indicated by S-0-0, which *is* is_null_sid()...

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/lib/winbind_util.c
source3/lib/winbind_util.h