[SSSD] Unexpected behavior with 'simple_allow_users ='

Ondrej Kos okos at redhat.com
Tue Nov 6 13:23:20 UTC 2012


On 11/02/2012 11:50 AM, Jakub Hrozek wrote:
> On Thu, Nov 01, 2012 at 03:04:11PM -0400, Simo Sorce wrote:
>> It's because the DB cannot hold an empty value.
>> With the current interface empty value = No value.
>>
>
> You can easily check for an option being present with
> confdb_get_param(). Then look at its value to determine if there is any
> (and if it's a valid list).
> _______________________________________________
> sssd-devel mailing list
> sssd-devel at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/sssd-devel
>
confdb_get_param returns zero (EOK) for all lists of simple rules, 
whether they're present in the config file or not. If the list is empty, 
then the values pointer points to null, same as if the list is not filed 
at all.

-- 
Ondrej Kos
Associate Software Engineer
Identity Management
Red Hat Czech

phone: +420-532-294-558
cell:  +420-736-417-909
ext:   82-62558
loc:   1013 Brno 1 office
irc:   okos @ #brno



More information about the sssd-devel mailing list