diff options
author | Pavel Reichl <pavel.reichl@redhat.com> | 2014-01-08 15:46:57 +0000 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-01-15 17:23:17 +0100 |
commit | eb2ec2c35742caf164b49b660b5045d08cac7623 (patch) | |
tree | 3eff918086d758b6a7d1fc9ed33a17e78c57f541 /src/providers/simple | |
parent | d57529a867940e83ed27f8c2326bde7f07db7b9a (diff) | |
download | sssd-eb2ec2c35742caf164b49b660b5045d08cac7623.tar.gz sssd-eb2ec2c35742caf164b49b660b5045d08cac7623.tar.xz sssd-eb2ec2c35742caf164b49b660b5045d08cac7623.zip |
simple access: match objects using flat name
Use flat name to recognise users and groups belonging to main sssd domain.
Resolves:
https://fedorahosted.org/sssd/ticket/2189
Diffstat (limited to 'src/providers/simple')
-rw-r--r-- | src/providers/simple/simple_access.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/simple/simple_access.c b/src/providers/simple/simple_access.c index 46b045e53..f2bfe7550 100644 --- a/src/providers/simple/simple_access.c +++ b/src/providers/simple/simple_access.c @@ -140,7 +140,9 @@ static errno_t simple_access_parse_names(TALLOC_CTX *mem_ctx, goto done; } - if (domain == NULL || strcasecmp(domain, be_ctx->domain->name) == 0) { + if (domain == NULL || strcasecmp(domain, be_ctx->domain->name) == 0 || + (be_ctx->domain->flat_name != NULL && + strcasecmp(domain, be_ctx->domain->flat_name) == 0)) { /* This object belongs to main SSSD domain. Those users and groups * are stored without domain part, so we will strip it off. * */ |