diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-03 15:25:25 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-12 13:53:40 +0100 |
commit | 8751aace6de14f3782765a89555b65e991f340a0 (patch) | |
tree | 894bdf351f04d4af0a91d0f387c3c5165aaea5f2 /src/providers/ad/ad_subdomains.c | |
parent | 5eea6f1e7a43bdd63a1530fb9c68ef292f431f4f (diff) | |
download | sssd-8751aace6de14f3782765a89555b65e991f340a0.tar.gz sssd-8751aace6de14f3782765a89555b65e991f340a0.tar.xz sssd-8751aace6de14f3782765a89555b65e991f340a0.zip |
SUBDOMAINS: Reuse cached results if DP is offline
If Data Provider was unable to refresh the subdomain list, the
sss_domain_info->subdomains list was NULL. Which meant that no DP
request matched any known domain and hence offline authentication was
not working correctly.
Resolves:
https://fedorahosted.org/sssd/ticket/2168
Diffstat (limited to 'src/providers/ad/ad_subdomains.c')
-rw-r--r-- | src/providers/ad/ad_subdomains.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/providers/ad/ad_subdomains.c b/src/providers/ad/ad_subdomains.c index 9911dfe0f..184145230 100644 --- a/src/providers/ad/ad_subdomains.c +++ b/src/providers/ad/ad_subdomains.c @@ -650,5 +650,12 @@ int ad_subdom_init(struct be_ctx *be_ctx, return EFAULT; } + ret = sysdb_update_subdomains(be_ctx->domain); + if (ret != EOK) { + DEBUG(SSSDBG_MINOR_FAILURE, ("Could not load the list of subdomains. " + "Users from trusted domains might not be resolved correctly\n")); + /* Ignore this error and try to discover the subdomains later */ + } + return EOK; } |