1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

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
This commit is contained in:
Volker Lendecke 2018-12-18 15:53:48 +01:00
parent 6f2ccb5973
commit ee4a33a4ff
2 changed files with 9 additions and 1 deletions

View File

@ -1 +0,0 @@
^samba3.wbinfo_sids_to_xids.wbinfo.some.mapped

View File

@ -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)));