diff options
author | Volker Lendecke <vl@samba.org> | 2018-12-18 15:53:48 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2019-01-08 13:15:35 +0100 |
commit | ee4a33a4fff1ba86f353d72970fe990774dee893 (patch) | |
tree | 849e0c5154a234c77d01fb266863bb0ea57a1e51 /source3 | |
parent | 6f2ccb59734440e5844d6ef703a41e032f7d1663 (diff) | |
download | samba-ee4a33a4fff1ba86f353d72970fe990774dee893.tar.gz |
idmap: In _wbint_Sids2UnixIDs, pass back what we have
SOME_UNMAPPED does not mean that nothing worthwhile is in here. We
need to pass what we have.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Tue Jan 8 13:15:35 CET 2019 on sn-devel-144
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_dual_srv.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c index 62224bf313e..ab14f5d51a0 100644 --- a/source3/winbindd/winbindd_dual_srv.c +++ b/source3/winbindd/winbindd_dual_srv.c @@ -204,6 +204,15 @@ NTSTATUS _wbint_Sids2UnixIDs(struct pipes_struct *p, status = dom->methods->sids_to_unixids(dom, id_map_ptrs); + if (NT_STATUS_EQUAL(status, STATUS_SOME_UNMAPPED)) { + /* + * This is okay. We need to transfer the mapped ones + * up to our caller. The individual mappings carry the + * information whether they are mapped or not. + */ + status = NT_STATUS_OK; + } + if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("sids_to_unixids returned %s\n", nt_errstr(status))); |