From: Ralph Boehme Date: Mon, 9 Oct 2017 11:29:05 +0000 (+0200) Subject: winbindd: idmap_rid: error code for failing id-to-sid mapping request X-Git-Tag: samba-4.6.12~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dcc119c14e9fc087d382f05c802cdd997738cec;p=thirdparty%2Fsamba.git winbindd: idmap_rid: error code for failing id-to-sid mapping request 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-6-test): Karolin Seeger Autobuild-Date(v4-6-test): Thu Dec 14 16:20:49 CET 2017 on sn-devel-144 --- diff --git a/source3/winbindd/idmap_rid.c b/source3/winbindd/idmap_rid.c index 95e24db5290..074eaa1149b 100644 --- a/source3/winbindd/idmap_rid.c +++ b/source3/winbindd/idmap_rid.c @@ -81,7 +81,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,