summaryrefslogtreecommitdiff
path: root/src/responder/common/negcache.c
diff options
context:
space:
mode:
authorJan Zeleny <jzeleny@redhat.com>2012-03-28 07:54:26 -0400
committerStephen Gallagher <sgallagh@redhat.com>2012-04-24 09:19:42 -0400
commit6fdde3913a11cd6148627696fa8717c34e8460fc (patch)
tree43ef914846cb2c9b2c2854e08d6ece5d3bc17c91 /src/responder/common/negcache.c
parentc0f9698cd951b7223f251ff2511c4b22a6e4ba60 (diff)
downloadsssd-6fdde3913a11cd6148627696fa8717c34e8460fc.tar.gz
sssd-6fdde3913a11cd6148627696fa8717c34e8460fc.tar.bz2
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.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/responder/common/negcache.c b/src/responder/common/negcache.c
index 47f4c323..dd4c0008 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));