[SSSD] [Patch] Cmocka unit test for negcache.c module

Lukas Slebodnik lslebodn at redhat.com
Tue Feb 25 21:00:00 UTC 2014


On (25/02/14 16:40), Jakub Hrozek wrote:
>On Mon, Feb 17, 2014 at 04:47:09PM +0100, Lukas Slebodnik wrote:
>> The test(s) don't pass because they cannot pass.
>> You used function create_dom_test_ctx and param with filter_groups and
>> filter_users and result of this is configuration:
>> 
>> [domain/nss_test]
>> filter_users = testuser1
>> filter_groups = testgroup1
>> 
>> But negative cache reads configuration options from [nss] section.
>
>No, it reads from both actually and domain takes precedence.
>
In this case, we should update manual pages.

man sssd.conf
    -> NSS configuration options
       filter_users, filter_groups (string)
           Exclude certain users from being fetched from the sss NSS database.
           This is particularly useful for system accounts. This option can
           also be set per-domain or include fully-qualified names
            to filter only users from the particular domain.

           Default: root

I apologize for confusion.


>> 
>> [nss]
>> filter_users = testuser1
>> filter_groups = testgroup1
>
>There was two different bugs in the test. Because the domain structure
>was created with talloc, the ->next pointer was random data and a for
>loop that walked through the list of domains crashed.
>
Nice catch.
I was lucky, because test din't crash in my case.

LS



More information about the sssd-devel mailing list