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?
Thanks again Marco
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.
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....
405 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l405 /* Get boolean value */ 406 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l406 unsigned char get_bool_config_value(struct collection_item *item, 407 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l407 unsigned char def, int *error) 408 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l408 { 409 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l409 const char *str; 410 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l410 int len; 411 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l411
412 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l412 TRACE_FLOW_STRING("get_bool_config_value", "Entry"); 413 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l413
414 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l414 /* Do we have the item ? */ 415 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l415 if ((item == NULL) || 416 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l416 (col_get_item_type(item) != COL_TYPE_STRING)) { 417 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l417 TRACE_ERROR_NUMBER("Invalid argument.", EINVAL); 418 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l418 if (error) *error = EINVAL; 419 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l419 return def; 420 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l420 } 421 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l421
422 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l422 if (error) *error = EOK; 423 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l423
424 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l424 str = (const char *)col_get_item_data(item); 425 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l425 len = col_get_item_length(item); 426 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l426
427 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l427 /* Try to parse the value */ 428 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l428 if ((strncasecmp(str, "true", len) == 0) || 429 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l429 (strncasecmp(str, "yes", len) == 0)) { 430 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l430 TRACE_FLOW_STRING("Returning", "true"); 431 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l431 return '\1'; 432 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l432 } 433 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l433 else if ((strncasecmp(str, "false", len) == 0) || 434 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l434 (strncasecmp(str, "no", len) == 0)) { 435 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l435 TRACE_FLOW_STRING("Returning", "false"); 436 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l436 return '\0'; 437 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l437 } 438 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l438
439 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l439 TRACE_ERROR_STRING("Returning", "error"); 440 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l440 if (error) *error = EIO; 441 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l441 return def; 442 http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l442 }
On Mon, Feb 6, 2012 at 3:46 PM, Dmitri Pal dpal@redhat.com wrote:
** On 02/05/2012 02:34 PM, Stephen Gallagher wrote:
On Feb 5, 2012, at 1:56 PM, Marco Pizzoli marco.pizzoli@gmail.com 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 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_value....
405http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l405/* Get boolean value */ 406http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l406unsigned char get_bool_config_value(struct collection_item *item, 407http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l407 unsigned char def, int *error) 408http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l408{ 409http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l409 const char *str; 410http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l410 int len; 411http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l411 412http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l412 TRACE_FLOW_STRING("get_bool_config_value", "Entry"); 413http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l413 414http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l414 /* Do we have the item ? */ 415http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l415 if ((item == NULL) || 416http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l416 (col_get_item_type(item) != COL_TYPE_STRING)) { 417http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l417 TRACE_ERROR_NUMBER("Invalid argument.", EINVAL); 418http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l418 if (error) *error = EINVAL; 419http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l419 return def; 420http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l420 } 421http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l421 422http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l422 if (error) *error = EOK; 423http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l423 424http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l424 str = (const char *)col_get_item_data(item); 425http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l425 len = col_get_item_length(item); 426http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l426 427http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l427 /* Try to parse the value */ 428http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l428 if ((strncasecmp(str, "true", len) == 0) || 429http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l429 (strncasecmp(str, "yes", len) == 0)) { 430http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l430 TRACE_FLOW_STRING("Returning", "true"); 431http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l431 return '\1'; 432http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l432 } 433http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l433 else if ((strncasecmp(str, "false", len) == 0) || 434http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l434 (strncasecmp(str, "no", len) == 0)) { 435http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l435 TRACE_FLOW_STRING("Returning", "false"); 436http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l436 return '\0'; 437http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l437 } 438http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l438 439http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l439 TRACE_ERROR_STRING("Returning", "error"); 440http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l440 if (error) *error = EIO; 441http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l441 return def; 442http://git.fedorahosted.org/git?p=ding-libs.git;a=blob;f=ini/ini_get_value.c;h=f31077f119f04d32bbc923f483f21e3d897c3b45;hb=b55824ab7821f53e878908dcbddf7cf8a2a78807#l442}
Thanks to you both. Appreciated Marco
sssd-devel@lists.fedorahosted.org