summaryrefslogtreecommitdiff
path: root/src/providers
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:13:40 +0200
commit794bfc68c39ce19e66eb20083adb19d5079d0431 (patch)
tree41fa463650fe57637e0173d9ee0341b8ba1f6606 /src/providers
parent6835cbe127490f99b5b28ddf133924d905cf78fd (diff)
downloadsssd-794bfc68c39ce19e66eb20083adb19d5079d0431.tar.gz
sssd-794bfc68c39ce19e66eb20083adb19d5079d0431.tar.bz2
sssd-794bfc68c39ce19e66eb20083adb19d5079d0431.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')
-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 d649e333..b3a048c1 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 *);