summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_common.c
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2013-09-12 12:03:35 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-20 20:28:37 +0200
commit1a874bad313a5cd9a711ca8aa55019221b0b026c (patch)
treeb0501aea34fbde9e4fc1eaf06eb50853993da220 /src/providers/ldap/ldap_common.c
parent5ba03a1e8bd97fe109e342e0727efeac2d274dbc (diff)
downloadsssd-1a874bad313a5cd9a711ca8aa55019221b0b026c.tar.gz
sssd-1a874bad313a5cd9a711ca8aa55019221b0b026c.tar.xz
sssd-1a874bad313a5cd9a711ca8aa55019221b0b026c.zip
sdap_domain_add: remove too strict consistency check
The check worked for simple setups but fails e.g. in environment with trusts.
Diffstat (limited to 'src/providers/ldap/ldap_common.c')
-rw-r--r--src/providers/ldap/ldap_common.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index b668a48e3..89786fa49 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -77,16 +77,6 @@ sdap_domain_add(struct sdap_options *opts,
sdom->dom = dom;
sdom->head = &opts->sdom;
- if (opts->sdom) {
- /* Only allow subdomains of the parent domain */
- if (dom->parent == NULL ||
- dom->parent != opts->sdom->dom) {
- DEBUG(SSSDBG_OP_FAILURE, ("Domain %s is not a subdomain of %s\n",
- dom->name, opts->sdom->dom->name));
- return EINVAL;
- }
- }
-
talloc_set_destructor((TALLOC_CTX *)sdom, sdap_domain_destructor);
DLIST_ADD_END(opts->sdom, sdom, struct sdap_domain *);