**
On 02/05/2012 02:34 PM, Stephen Gallagher wrote:
On Feb 5, 2012, at 1:56 PM, Marco Pizzoli <marco.pizzoli(a)gmail.com>
<marco.pizzoli(a)gmail.com> wrote:
Hi,
in man sssd.conf I see boolean directives listed as lower case in the services section
and upper case in the domains section.
Do I have to follow the case sensitiveness specified or is it simply a typo?
Booleans are case-insensitive. Not all options are, however.
_______________________________________________
sssd-devel mailing
listsssd-devel@lists.fedorahosted.orghttps://fedorahosted.org/mailman/listinfo/sssd-devel
http://git.fedorahosted.org/git/?p=ding-libs.git;a=blob;f=ini/ini_get_val...
405<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
Get boolean value */
406<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
char get_bool_config_value(struct collection_item *item,
407<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
unsigned char def, int *error)
408<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
409<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
const char *str;
410<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
int len;
411<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
412<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
TRACE_FLOW_STRING("get_bool_config_value", "Entry");
413<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
414<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
/* Do we have the item ? */
415<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
if ((item == NULL) ||
416<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
(col_get_item_type(item) != COL_TYPE_STRING)) {
417<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
TRACE_ERROR_NUMBER("Invalid argument.", EINVAL);
418<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
if (error) *error = EINVAL;
419<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
return def;
420<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
}
421<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
422<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
if (error) *error = EOK;
423<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
424<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
str = (const char *)col_get_item_data(item);
425<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
len = col_get_item_length(item);
426<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
427<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
/* Try to parse the value */
428<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
if ((strncasecmp(str, "true", len) == 0) ||
429<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
(strncasecmp(str, "yes", len) == 0)) {
430<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
TRACE_FLOW_STRING("Returning", "true");
431<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
return '\1';
432<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
}
433<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
else if ((strncasecmp(str, "false", len) == 0) ||
434<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
(strncasecmp(str, "no", len) == 0)) {
435<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
TRACE_FLOW_STRING("Returning", "false");
436<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
return '\0';
437<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
}
438<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
439<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
TRACE_ERROR_STRING("Returning", "error");
440<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
if (error) *error = EIO;
441<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
return def;
442<http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_g...
Thanks to you both. Appreciated
Marco