diff options
author | Sumit Bose <sbose@redhat.com> | 2013-09-12 12:03:35 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-09-20 20:28:37 +0200 |
commit | 1a874bad313a5cd9a711ca8aa55019221b0b026c (patch) | |
tree | b0501aea34fbde9e4fc1eaf06eb50853993da220 /src | |
parent | 5ba03a1e8bd97fe109e342e0727efeac2d274dbc (diff) | |
download | sssd-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')
-rw-r--r-- | src/providers/ldap/ldap_common.c | 10 |
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 *); |