From 40ac02968ec88acca9ca7cf0345aa5b4b9ba39b4 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 9 Oct 2017 13:29:05 +0200 Subject: [PATCH] winbindd: idmap_rid: error code for failing id-to-sid mapping request MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Volker Lendecke Autobuild-User(master): Ralph Böhme Autobuild-Date(master): Tue Oct 10 19:57:37 CEST 2017 on sn-devel-144 (cherry picked from commit 490c35df35bad6c2f1c4acd2f056d6fdc480ec1f) Autobuild-User(v4-7-test): Karolin Seeger Autobuild-Date(v4-7-test): Thu Dec 14 16:32:49 CET 2017 on sn-devel-144 --- source3/winbindd/idmap_rid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/idmap_rid.c b/source3/winbindd/idmap_rid.c index 6ebb4a191a8..b066ba3c50f 100644 --- a/source3/winbindd/idmap_rid.c +++ b/source3/winbindd/idmap_rid.c @@ -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, -- 2.11.4.GIT