winbindd: idmap_rid: error code for failing id-to-sid mapping request
authorRalph Boehme <slow@samba.org>
Mon, 9 Oct 2017 11:29:05 +0000 (13:29 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 10 Oct 2017 17:57:37 +0000 (19:57 +0200)
NT_STATUS_NO_SUCH_DOMAIN triggers complete request failure in the parent
winbindd. By returning NT_STATUS_NONE_MAPPED winbindd lets the individual
mapping fail but keeps processing any remaining mapping requests.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=13052

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Oct 10 19:57:37 CEST 2017 on sn-devel-144

source3/winbindd/idmap_rid.c

index 6ebb4a191a84d9969499d98a3cb77690a0c1213a..b066ba3c50f102fa73a512cf403e091ad727462a 100644 (file)
@@ -67,7 +67,7 @@ static NTSTATUS idmap_rid_id_to_sid(struct idmap_domain *dom, struct id_map *map
 
        if (is_null_sid(&dom->dom_sid)) {
                DBG_INFO("idmap domain '%s' without SID\n", dom->name);
-               return NT_STATUS_NO_SUCH_DOMAIN;
+               return NT_STATUS_NONE_MAPPED;
        }
 
        sid_compose(map->sid, &dom->dom_sid,