Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    r50bb490 r2f8e3ca  
    5555        conf->runmode = RUNMODE_INETD;
    5656        conf->authmode = AUTHMODE_OPEN;
    57         conf->auth_backend = NULL;
    5857        conf->auth_pass = NULL;
    5958        conf->oper_pass = NULL;
    60         conf->allow_account_add = 1;
    6159        conf->configdir = g_strdup(CONFIG);
    6260        conf->plugindir = g_strdup(PLUGINDIR);
     
    242240                                        conf->authmode = AUTHMODE_OPEN;
    243241                                }
    244                         } else if (g_strcasecmp(ini->key, "authbackend") == 0) {
    245                                 if (g_strcasecmp(ini->value, "storage") == 0) {
    246                                         conf->auth_backend = NULL;
    247                                 } else if (g_strcasecmp(ini->value, "pam") == 0 ||
    248                                          g_strcasecmp(ini->value, "ldap") == 0) {
    249                                         g_free(conf->auth_backend);
    250                                         conf->auth_backend = g_strdup(ini->value);
    251                                 } else {
    252                                         fprintf(stderr, "Invalid %s value: %s\n", ini->key, ini->value);
    253                                         return 0;
    254                                 }
    255242                        } else if (g_strcasecmp(ini->key, "authpassword") == 0) {
    256243                                g_free(conf->auth_pass);
     
    259246                                g_free(conf->oper_pass);
    260247                                conf->oper_pass = g_strdup(ini->value);
    261                         } else if (g_strcasecmp(ini->key, "allowaccountadd") == 0) {
    262                                 if (!is_bool(ini->value)) {
    263                                         fprintf(stderr, "Invalid %s value: %s\n", ini->key, ini->value);
    264                                         return 0;
    265                                 }
    266                                 conf->allow_account_add = bool2int(ini->value);
    267248                        } else if (g_strcasecmp(ini->key, "hostname") == 0) {
    268249                                g_free(conf->hostname);
Note: See TracChangeset for help on using the changeset viewer.