- Timestamp:
- 2016-11-20T08:40:36Z (8 years ago)
- Children:
- 3f44e43
- Parents:
- ba52ac5 (diff), 9f03c47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
conf.c
rba52ac5 r537d9b9 55 55 conf->runmode = RUNMODE_INETD; 56 56 conf->authmode = AUTHMODE_OPEN; 57 conf->auth_backend = NULL; 57 58 conf->auth_pass = NULL; 58 59 conf->oper_pass = NULL; 60 conf->allow_account_add = 1; 59 61 conf->configdir = g_strdup(CONFIG); 60 62 conf->plugindir = g_strdup(PLUGINDIR); … … 240 242 conf->authmode = AUTHMODE_OPEN; 241 243 } 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 } 242 255 } else if (g_strcasecmp(ini->key, "authpassword") == 0) { 243 256 g_free(conf->auth_pass); … … 246 259 g_free(conf->oper_pass); 247 260 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); 248 267 } else if (g_strcasecmp(ini->key, "hostname") == 0) { 249 268 g_free(conf->hostname);
Note: See TracChangeset
for help on using the changeset viewer.