From a22b0af1993a489c9c0e66fdc1083f43b410d12c Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Tue, 15 Nov 2016 13:22:09 +0100 Subject: nss: move nss_ctx->global_names to rctx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Global names context is used to parse AD well known SIDs and names into its opposite. This patch moves definition of this parameter from nss responder into common responder context so it can be used also by other responders. This change will be use to enable looking up well known SIDs and names directly in cache_req. Reviewed-by: Lukáš Slebodník --- src/responder/common/responder_common.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/responder/common/responder_common.c') diff --git a/src/responder/common/responder_common.c b/src/responder/common/responder_common.c index c939ea2c6..bf0d92f29 100644 --- a/src/responder/common/responder_common.c +++ b/src/responder/common/responder_common.c @@ -1080,6 +1080,12 @@ int sss_process_init(TALLOC_CTX *mem_ctx, goto fail; } + ret = sss_ad_default_names_ctx(rctx, &rctx->global_names); + if (ret != EOK) { + DEBUG(SSSDBG_CRIT_FAILURE, "sss_ad_default_names_ctx failed.\n"); + goto fail; + } + DEBUG(SSSDBG_TRACE_FUNC, "Responder Initialization complete\n"); *responder_ctx = rctx; -- cgit