diff options
author | Sumit Bose <sbose@redhat.com> | 2012-09-28 11:22:59 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2012-10-01 21:45:22 +0200 |
commit | aac3ca699a09090072ae4d68bdda8dec990ae393 (patch) | |
tree | 71212910107a41b5ceaca0e9af27f5d971e744d8 /src/util | |
parent | 1542b85f13d72329685bdd97aa879c36d11f81be (diff) | |
download | sssd-aac3ca699a09090072ae4d68bdda8dec990ae393.tar.gz sssd-aac3ca699a09090072ae4d68bdda8dec990ae393.tar.xz sssd-aac3ca699a09090072ae4d68bdda8dec990ae393.zip |
Use flat name for master domain as well
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 0ef395497..41f7b6803 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++) { |