Skip to content

Commit c353ecb

Browse files
committed
[#1304] Checkpoint before regen (3)
1 parent 0c9d92c commit c353ecb

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

doc/examples/agent/comments.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
{
1717
"comment": "basic HTTP authentication",
1818

19+
"type": "basic",
20+
1921
// In basic HTTP authentication clients
2022
"clients":
2123
[

src/bin/agent/agent_lexer.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ ControlCharacterFill [^"\\]|\\{JSONEscapeSequence}
258258
case ParserContext::AUTHENTICATION:
259259
return AgentParser::make_REALM(driver.loc_);
260260
default:
261-
return AgentParser::make_STRING("authentication", driver.loc_);
261+
return AgentParser::make_STRING("realm", driver.loc_);
262262
}
263263
}
264264

src/bin/agent/simple_parser.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ AgentSimpleParser::parse(const CtrlAgentCfgContextPtr& ctx,
115115
}
116116

117117
// Basic HTTP authentications are third.
118-
ConstElementPtr auth_config = config->get("authentications");
118+
ConstElementPtr auth_config = config->get("authentication");
119119
if (auth_config) {
120120
using namespace isc::http;
121121
BasicHttpAuthConfigPtr auth(new BasicHttpAuthConfig());

src/bin/agent/tests/testdata/get_config.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
{
22
"Control-agent": {
3-
"basic-authentication-realm": "kea-control-agent",
4-
"basic-authentications": [
5-
{
6-
"password": "1234",
7-
"user": "admin",
8-
"user-context": {
9-
"comment": "admin is authorized"
3+
"authentication": {
4+
"clients": [
5+
{
6+
"password": "1234",
7+
"user": "admin",
8+
"user-context": {
9+
"comment": "admin is authorized"
10+
}
1011
}
11-
}
12-
],
12+
],
13+
"realm": "kea-control-agent",
14+
"type": "basic"
15+
},
1316
"control-sockets": {
1417
"d2": {
1518
"socket-name": "/tmp/kea-ddns-ctrl-socket",

0 commit comments

Comments
 (0)