From 8e195a545d41647e591c1d06082133cbd25dc0a4 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Thu, 11 Apr 2013 09:18:56 +0200 Subject: Fix simple access group control in case-insensitive domains https://fedorahosted.org/sssd/ticket/1713 In the simple access provider, we need to only canonicalize user names when comparing with values in the ACL, not when searching the cache. The sysdb searches might do a base search with a DN constructed with the username which fails if the username is lower case. --- src/tests/simple_access-tests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tests') diff --git a/src/tests/simple_access-tests.c b/src/tests/simple_access-tests.c index 1c2d1a9ea..4c7840026 100644 --- a/src/tests/simple_access-tests.c +++ b/src/tests/simple_access-tests.c @@ -480,7 +480,7 @@ START_TEST(test_group_case) test_ctx->ctx->deny_groups = NULL; req = simple_access_check_send(test_ctx, test_ctx->ev, - test_ctx->ctx, "U1"); + test_ctx->ctx, "u1"); fail_unless(test_ctx != NULL, "Cannot create request\n"); tevent_req_set_callback(req, simple_access_check_done, test_ctx); @@ -495,7 +495,7 @@ START_TEST(test_group_case) test_ctx->ctx->domain->case_sensitive = false; req = simple_access_check_send(test_ctx, test_ctx->ev, - test_ctx->ctx, "U1"); + test_ctx->ctx, "u1"); fail_unless(test_ctx != NULL, "Cannot create request\n"); tevent_req_set_callback(req, simple_access_check_done, test_ctx); -- cgit