summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Reichl <pavel.reichl@redhat.com>2014-01-08 15:46:57 +0000
committerJakub Hrozek <jhrozek@redhat.com>2014-01-15 17:24:36 +0100
commitbd95940479e731634a349b444620c12188dd23ad (patch)
treee72382fe57c042fdf093d9c35d809df4b2fb49a3 /src
parent654fa152629cf93d6681d138eb806247fca4d9ae (diff)
downloadsssd-bd95940479e731634a349b444620c12188dd23ad.tar.gz
sssd-bd95940479e731634a349b444620c12188dd23ad.tar.xz
sssd-bd95940479e731634a349b444620c12188dd23ad.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')
-rw-r--r--src/providers/simple/simple_access.c4
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.
* */