diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-11 09:18:56 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-04-15 15:03:45 +0200 |
commit | 4f57212955827a9062b150c768e8a0c2fb613193 (patch) | |
tree | 7a584c3f71b8b383013d8ed2020825626cd90f02 /src/tests/simple_access-tests.c | |
parent | e495127f6abb40b74e23db9e37ff08247008a543 (diff) | |
download | sssd-4f57212955827a9062b150c768e8a0c2fb613193.tar.gz sssd-4f57212955827a9062b150c768e8a0c2fb613193.tar.xz sssd-4f57212955827a9062b150c768e8a0c2fb613193.zip |
Fix simple access group control in case-insensitive domains
https://fedorahosted.org/sssd/ticket/1880
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.
Diffstat (limited to 'src/tests/simple_access-tests.c')
-rw-r--r-- | src/tests/simple_access-tests.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/simple_access-tests.c b/src/tests/simple_access-tests.c index ab2612db8..3501553bd 100644 --- a/src/tests/simple_access-tests.c +++ b/src/tests/simple_access-tests.c @@ -481,7 +481,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); @@ -496,7 +496,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); |