diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/usertools.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/usertools.c b/src/util/usertools.c index 0ef39549..41f7b680 100644 --- a/src/util/usertools.c +++ b/src/util/usertools.c @@ -294,7 +294,8 @@ static struct sss_domain_info * match_any_domain_or_subdomain_name ( { uint32_t i; - if (strcasecmp (dom->name, dmatch) == 0) + if (strcasecmp (dom->name, dmatch) == 0 || + (dom->flat_name != NULL && strcasecmp(dom->flat_name, dmatch) == 0)) return dom; for (i = 0; i < dom->subdomain_count; i++) { |