On 02/05/2012 02:34 PM, Stephen Gallagher wrote:
On Feb 5, 2012, at 1:56 PM, Marco Pizzoli <marco.pizzoli@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 list
sssd-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/sssd-devel
http://git.fedorahosted.org/git/?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807
405 /* Get boolean value */
406
unsigned char get_bool_config_value(struct collection_item *item,
407
unsigned char def, int *error)
412
TRACE_FLOW_STRING("get_bool_config_value", "Entry");
414 /* Do we have the item ? */
415 if ((item == NULL) ||
416
(col_get_item_type(item) != COL_TYPE_STRING)) {
417
TRACE_ERROR_NUMBER("Invalid argument.", EINVAL);
418 if (error) *error = EINVAL;
422 if (error) *error = EOK;
424
str = (const char *)col_get_item_data(item);
425 len = col_get_item_length(item);
427 /* Try to parse the value */
428
if ((strncasecmp(str, "true", len) == 0) ||
429
(strncasecmp(str, "yes", len) == 0)) {
430
TRACE_FLOW_STRING("Returning", "true");
433
else if ((strncasecmp(str, "false", len) == 0) ||
434
(strncasecmp(str, "no", len) == 0)) {
435
TRACE_FLOW_STRING("Returning", "false");
439
TRACE_ERROR_STRING("Returning", "error");
440 if (error) *error = EIO;
--
Thank you,
Dmitri Pal
Sr. Engineering Manager IPA project,
Red Hat Inc.
-------------------------------
Looking to carve out IT costs?
www.redhat.com/carveoutcosts/