summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/usertools.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util/usertools.c b/src/util/usertools.c
index adef2b00..ea640fb3 100644
--- a/src/util/usertools.c
+++ b/src/util/usertools.c
@@ -236,7 +236,9 @@ static struct sss_domain_info * match_any_domain_or_subdomain_name (
return dom;
for (i = 0; i < dom->subdomain_count; i++) {
- if (strcasecmp(dom->subdomains[i]->name, dmatch) == 0) {
+ if (strcasecmp(dom->subdomains[i]->name, dmatch) == 0 ||
+ (dom->subdomains[i]->flat_name != NULL &&
+ strcasecmp(dom->subdomains[i]->flat_name, dmatch) == 0)) {
return dom->subdomains[i];
}
}