]> git.ipfire.org Git - thirdparty/samba.git/commit
lib: Introduce winbind_xid_to_sid
authorVolker Lendecke <vl@samba.org>
Tue, 26 Feb 2019 13:45:32 +0000 (14:45 +0100)
committerKarolin Seeger <kseeger@samba.org>
Tue, 12 Mar 2019 11:25:43 +0000 (11:25 +0000)
commitb9ac92992ceb2c4e4127908994a7ee2a5624030f
tree950f82d8f8c86c360f7f6a32014bc11eb08f8981
parent8d0a8864b17d2a78bf912a7bd59bb35531785f7e
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
(cherry picked from commit ef706a3e63b3e25edd27e0f99c3e2d8ff7209cb6)
source3/lib/winbind_util.c
source3/lib/winbind_util.h