diff options
author | Jan Zeleny <jzeleny@redhat.com> | 2012-03-28 07:54:26 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-04-24 09:19:42 -0400 |
commit | 6fdde3913a11cd6148627696fa8717c34e8460fc (patch) | |
tree | 43ef914846cb2c9b2c2854e08d6ece5d3bc17c91 /src/responder/common/negcache.c | |
parent | c0f9698cd951b7223f251ff2511c4b22a6e4ba60 (diff) | |
download | sssd-6fdde3913a11cd6148627696fa8717c34e8460fc.tar.gz sssd-6fdde3913a11cd6148627696fa8717c34e8460fc.tar.xz sssd-6fdde3913a11cd6148627696fa8717c34e8460fc.zip |
Modified responder_get_domain()
Now it checks for subdomains as well as for the domain itself
Diffstat (limited to 'src/responder/common/negcache.c')
-rw-r--r-- | src/responder/common/negcache.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c index 47f4c3235..dd4c0008a 100644 --- a/src/responder/common/negcache.c +++ b/src/responder/common/negcache.c @@ -566,13 +566,14 @@ int sss_ncache_reset_permament(struct sss_nc_ctx *ctx) errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache, struct confdb_ctx *cdb, struct sss_names_ctx *names_ctx, - struct sss_domain_info *domain_list) + struct resp_ctx *rctx) { errno_t ret; bool filter_set = false; char **filter_list = NULL; char *name = NULL; struct sss_domain_info *dom = NULL; + struct sss_domain_info *domain_list = rctx->domains; char *domainname = NULL; char *conf_path = NULL; TALLOC_CTX *tmpctx = talloc_new(NULL); @@ -649,7 +650,7 @@ errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache, continue; } if (domainname) { - dom = responder_get_domain(domain_list, domainname); + dom = responder_get_domain(tmpctx, rctx, domainname); if (!dom) { DEBUG(SSSDBG_CRIT_FAILURE, ("Invalid domain name [%s]\n", domainname)); @@ -746,7 +747,7 @@ errno_t sss_ncache_prepopulate(struct sss_nc_ctx *ncache, continue; } if (domainname) { - dom = responder_get_domain(domain_list, domainname); + dom = responder_get_domain(tmpctx, rctx, domainname); if (!dom) { DEBUG(SSSDBG_CRIT_FAILURE, ("Invalid domain name [%s]\n", domainname)); |