From 416c74e8c89dc2fb2083beaaa9ac8a6e975ec873 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Sat, 1 Apr 2017 16:51:07 +0200 Subject: [PATCH] s3/rpc_client: lookupsids error handling of NT_STATUS_NONE_MAPPED NT_STATUS_NONE_MAPPED is not a fatal error, it just means we must return all lsa_TranslatedName's as type SID_NAME_UNKNOWN. Bug: https://bugzilla.samba.org/show_bug.cgi?id=12728 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/rpc_client/cli_lsarpc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c index 70952f62bab..41c1ef482f4 100644 --- a/source3/rpc_client/cli_lsarpc.c +++ b/source3/rpc_client/cli_lsarpc.c @@ -28,6 +28,7 @@ #include "rpc_client/cli_lsarpc.h" #include "rpc_client/init_lsa.h" #include "../libcli/security/security.h" +#include "lsa.h" /** @defgroup lsa LSA - Local Security Architecture * @ingroup rpc_client @@ -221,7 +222,7 @@ static NTSTATUS dcerpc_lsa_lookup_sids_noalloc(struct dcerpc_binding_handle *h, return status; } - if(!NT_STATUS_IS_ERR(result)) { + if (!NT_STATUS_LOOKUP_ERR(result)) { lsa_names.count = lsa_names2.count; lsa_names.names = talloc_array(mem_ctx, struct lsa_TranslatedName, -- 2.11.4.GIT