Skip to content

Commit 81198c0

Browse files
committed
remove '&' from krb5
1 parent e438ee8 commit 81198c0

File tree

3 files changed

+8
-8
lines changed
  • doc/antora/modules/reference/pages/raddb/mods-available
  • raddb/mods-available
  • src/modules/rlm_krb5

3 files changed

+8
-8
lines changed

doc/antora/modules/reference/pages/raddb/mods-available/krb5.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ krb5
8181
krb5 {
8282
keytab = /path/to/keytab
8383
service_principal = name_of_principle
84-
# username = &User-Name
85-
# password = &User-Password
84+
# username = User-Name
85+
# password = User-Password
8686
reuse {
8787
# min = 10
8888
# max = 100

raddb/mods-available/krb5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ krb5 {
3131
#
3232
# If this is just a user name, then the default Kerberos realm will
3333
# automatically be added.
34-
# username = &User-Name
34+
# username = User-Name
3535

3636
#
3737
# password:: The password to use in user authentication
38-
# password = &User-Password
38+
# password = User-Password
3939

4040
#
4141
# .Reusable Handles

src/modules/rlm_krb5/rlm_krb5.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -485,10 +485,10 @@ static unlang_action_t CC_HINT(nonnull) mod_authenticate(rlm_rcode_t *p_result,
485485
static const call_env_method_t krb5_auth_call_env = {
486486
FR_CALL_ENV_METHOD_OUT(krb5_auth_call_env_t),
487487
.env = (call_env_parser_t[]) {
488-
{ FR_CALL_ENV_OFFSET("username", FR_TYPE_STRING, CALL_ENV_FLAG_REQUIRED, krb5_auth_call_env_t, username),
489-
.pair.dflt = "&User-Name", .pair.dflt_quote = T_BARE_WORD },
490-
{ FR_CALL_ENV_OFFSET("password", FR_TYPE_STRING, CALL_ENV_FLAG_SECRET | CALL_ENV_FLAG_REQUIRED, krb5_auth_call_env_t, password),
491-
.pair.dflt = "&User-Password", .pair.dflt_quote = T_BARE_WORD },
488+
{ FR_CALL_ENV_OFFSET("username", FR_TYPE_STRING, CALL_ENV_FLAG_REQUIRED| CALL_ENV_FLAG_BARE_WORD_ATTRIBUTE, krb5_auth_call_env_t, username),
489+
.pair.dflt = "User-Name", .pair.dflt_quote = T_BARE_WORD },
490+
{ FR_CALL_ENV_OFFSET("password", FR_TYPE_STRING, CALL_ENV_FLAG_SECRET | CALL_ENV_FLAG_REQUIRED| CALL_ENV_FLAG_BARE_WORD_ATTRIBUTE, krb5_auth_call_env_t, password),
491+
.pair.dflt = "User-Password", .pair.dflt_quote = T_BARE_WORD },
492492
CALL_ENV_TERMINATOR
493493
}
494494
};

0 commit comments

Comments
 (0)