void
Auth::Config::parse(Auth::Config * scheme, int n_configured, char *param_str)
{
- if (strcmp(param_str, "key_extras") == 0) {
+ if (strcmp(param_str, "children") == 0) {
+ authenticateChildren.parseConfig();
+
+ } else if (strcmp(param_str, "key_extras") == 0) {
keyExtrasLine = ConfigParser::NextQuotedToken();
Format::Format *nlf = new ::Format::Format(scheme->type());
if (!nlf->parse(keyExtrasLine.termedBuf())) {
void
Auth::Config::dump(StoreEntry *entry, const char *name, Auth::Config *scheme)
{
+ storeAppendPrintf(entry, "%s %s children %d startup=%d idle=%d concurrency=%d\n",
+ name, scheme->type(),
+ authenticateChildren.n_max, authenticateChildren.n_startup,
+ authenticateChildren.n_idle, authenticateChildren.concurrency);
+
if (keyExtrasLine.size() > 0)
storeAppendPrintf(entry, "%s %s key_extras \"%s\"\n", name, scheme->type(), keyExtrasLine.termedBuf());
}
storeAppendPrintf(entry, "\n");
storeAppendPrintf(entry, "%s basic realm %s\n", name, basicAuthRealm);
- storeAppendPrintf(entry, "%s basic children %d startup=%d idle=%d concurrency=%d\n", name, authenticateChildren.n_max, authenticateChildren.n_startup, authenticateChildren.n_idle, authenticateChildren.concurrency);
storeAppendPrintf(entry, "%s basic credentialsttl %d seconds\n", name, (int) credentialsTTL);
storeAppendPrintf(entry, "%s basic casesensitive %s\n", name, casesensitive ? "on" : "off");
Auth::Config::dump(entry, name, scheme);
parse_wordlist(&authenticateProgram);
requirePathnameExists("auth_param basic program", authenticateProgram->key);
- } else if (strcmp(param_str, "children") == 0) {
- authenticateChildren.parseConfig();
} else if (strcmp(param_str, "realm") == 0) {
parse_eol(&basicAuthRealm);
} else if (strcmp(param_str, "credentialsttl") == 0) {
list = list->next;
}
- storeAppendPrintf(entry, "\n%s %s realm %s\n%s %s children %d startup=%d idle=%d concurrency=%d\n%s %s nonce_max_count %d\n%s %s nonce_max_duration %d seconds\n%s %s nonce_garbage_interval %d seconds\n",
+ storeAppendPrintf(entry, "\n%s %s realm %s\n%s %s nonce_max_count %d\n%s %s nonce_max_duration %d seconds\n%s %s nonce_garbage_interval %d seconds\n",
name, "digest", digestAuthRealm,
- name, "digest", authenticateChildren.n_max, authenticateChildren.n_startup, authenticateChildren.n_idle, authenticateChildren.concurrency,
name, "digest", noncemaxuses,
name, "digest", (int) noncemaxduration,
name, "digest", (int) nonceGCInterval);
parse_wordlist(&authenticateProgram);
requirePathnameExists("auth_param digest program", authenticateProgram->key);
- } else if (strcmp(param_str, "children") == 0) {
- authenticateChildren.parseConfig();
} else if (strcmp(param_str, "realm") == 0) {
parse_eol(&digestAuthRealm);
} else if (strcmp(param_str, "nonce_garbage_interval") == 0) {
list = list->next;
}
- storeAppendPrintf(entry, "\n%s negotiate children %d startup=%d idle=%d concurrency=%d\n",
- name, authenticateChildren.n_max, authenticateChildren.n_startup, authenticateChildren.n_idle, authenticateChildren.concurrency);
- storeAppendPrintf(entry, "%s %s keep_alive %s\n", name, "negotiate", keep_alive ? "on" : "off");
+ storeAppendPrintf(entry, "\n%s %s keep_alive %s\n", name, "negotiate", keep_alive ? "on" : "off");
Auth::Config::dump(entry, name, scheme);
}
parse_wordlist(&authenticateProgram);
requirePathnameExists("auth_param negotiate program", authenticateProgram->key);
- } else if (strcmp(param_str, "children") == 0) {
- authenticateChildren.parseConfig();
} else if (strcmp(param_str, "keep_alive") == 0) {
parse_onoff(&keep_alive);
} else
list = list->next;
}
- storeAppendPrintf(entry, "\n%s ntlm children %d startup=%d idle=%d concurrency=%d\n",
- name, authenticateChildren.n_max, authenticateChildren.n_startup, authenticateChildren.n_idle, authenticateChildren.concurrency);
- storeAppendPrintf(entry, "%s %s keep_alive %s\n", name, "ntlm", keep_alive ? "on" : "off");
+ storeAppendPrintf(entry, "\n%s %s keep_alive %s\n", name, "ntlm", keep_alive ? "on" : "off");
Auth::Config::dump(entry, name, scheme);
}
parse_wordlist(&authenticateProgram);
requirePathnameExists("auth_param ntlm program", authenticateProgram->key);
- } else if (strcmp(param_str, "children") == 0) {
- authenticateChildren.parseConfig();
} else if (strcmp(param_str, "keep_alive") == 0) {
parse_onoff(&keep_alive);
} else