summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2015-07-24 09:55:28 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-07-27 22:48:19 +0200
commita8d31510d12af6ee39fb3e1e13f3a4f6bdef33c1 (patch)
tree316bacbe4ed2a794a047bda17a65b95c2b4b73da /src/providers
parent166a622bcba319aaa7190fbc348af887cbba30bf (diff)
downloadsssd-a8d31510d12af6ee39fb3e1e13f3a4f6bdef33c1.tar.gz
sssd-a8d31510d12af6ee39fb3e1e13f3a4f6bdef33c1.tar.xz
sssd-a8d31510d12af6ee39fb3e1e13f3a4f6bdef33c1.zip
SYSDB: prepare for LOCAL view
Objects doesn't have to have overrideDN specified when using LOCAL view. Since the view is not stored on the server we do not want to contact LDAP therefore we special case LOCAL view saying that it is OK that this attribute is missing. Preparation for: https://fedorahosted.org/sssd/ticket/2584 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_subdomains.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/providers/ipa/ipa_subdomains.c b/src/providers/ipa/ipa_subdomains.c
index cf7278447..cec8b3918 100644
--- a/src/providers/ipa/ipa_subdomains.c
+++ b/src/providers/ipa/ipa_subdomains.c
@@ -905,7 +905,8 @@ static void ipa_get_view_name_done(struct tevent_req *req)
goto done;
}
- if (!is_default_view(ctx->sd_ctx->id_ctx->view_name)) {
+ if (!is_default_view(ctx->sd_ctx->id_ctx->view_name)
+ && !is_local_view(ctx->sd_ctx->id_ctx->view_name)) {
/* Old view was not the default view, delete view tree */
ret = sysdb_delete_view_tree(
ctx->sd_ctx->be_ctx->domain->sysdb,