From 200787df74510f6edc9387cf9c33f133ccfc0ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20B=C5=99ezina?= Date: Fri, 21 Apr 2017 13:24:10 +0200 Subject: [PATCH 12/93] DP: Update viewname for all providers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Call sysdb_master_domain_update for backend domain upon initialization to make view information available for later use by session recording code, which will need to access overridden user and group names. Reviewed-by: Pavel Březina --- src/providers/data_provider_be.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c index 376bdba7f0d3b55ecf84abae6280dac9b743b44c..a1509cfd29b70e5b2286e6aef2a17700fb8077c1 100644 --- a/src/providers/data_provider_be.c +++ b/src/providers/data_provider_be.c @@ -410,6 +410,12 @@ errno_t be_process_init(TALLOC_CTX *mem_ctx, goto done; } + ret = sysdb_master_domain_update(be_ctx->domain); + if (ret != EOK) { + DEBUG(SSSDBG_FATAL_FAILURE, "Unable to update master domain information!\n"); + goto done; + } + ret = sss_monitor_init(be_ctx, be_ctx->ev, &monitor_be_methods, be_ctx->identity, DATA_PROVIDER_VERSION, MT_SVC_PROVIDER, be_ctx, NULL, -- 2.14.1