|
|
084415 |
From b358a58ecfade3541694edcdffaf4068d96cf91e Mon Sep 17 00:00:00 2001
|
|
|
9f41aa |
From: Dustin Wheeler <mdwheele@ncsu.edu>
|
|
|
9f41aa |
Date: Mon, 6 Feb 2017 08:57:49 -0500
|
|
|
9f41aa |
Subject: [PATCH] [krb5.aug] Support realms that start with numbers (#437)
|
|
|
9f41aa |
|
|
|
9f41aa |
Currently, the default kerberos configuration that ships with
|
|
|
9f41aa |
Ubuntu has a realm that starts with a number (1TS.ORG). This
|
|
|
9f41aa |
causes the parser to fail and prevents krb5.conf from being
|
|
|
9f41aa |
available via augtool.
|
|
|
9f41aa |
|
|
|
9f41aa |
This patch allows numbers 0-9 as the first character of a
|
|
|
9f41aa |
realm.
|
|
|
9f41aa |
---
|
|
|
9f41aa |
lenses/krb5.aug | 4 ++--
|
|
|
9f41aa |
lenses/tests/test_krb5.aug | 8 ++++++++
|
|
|
9f41aa |
2 files changed, 10 insertions(+), 2 deletions(-)
|
|
|
9f41aa |
|
|
|
9f41aa |
diff --git a/lenses/krb5.aug b/lenses/krb5.aug
|
|
|
9f41aa |
index 8936f3a0..734ddde9 100644
|
|
|
9f41aa |
--- a/lenses/krb5.aug
|
|
|
9f41aa |
+++ b/lenses/krb5.aug
|
|
|
9f41aa |
@@ -21,8 +21,8 @@ let closebr = del /[ \t]*\}/ "}"
|
|
|
9f41aa |
and realms in the [appdefaults] section.
|
|
|
9f41aa |
*)
|
|
|
9f41aa |
|
|
|
9f41aa |
-let realm_re = /[A-Z][.a-zA-Z0-9-]*/
|
|
|
9f41aa |
-let realm_anycase_re = /[A-Za-z][.a-zA-Z0-9-]*/
|
|
|
9f41aa |
+let realm_re = /[A-Z0-9][.a-zA-Z0-9-]*/
|
|
|
9f41aa |
+let realm_anycase_re = /[A-Za-z0-9][.a-zA-Z0-9-]*/
|
|
|
9f41aa |
let app_re = /[a-z][a-zA-Z0-9_]*/
|
|
|
9f41aa |
let name_re = /[.a-zA-Z0-9_-]+/
|
|
|
9f41aa |
|
|
|
9f41aa |
diff --git a/lenses/tests/test_krb5.aug b/lenses/tests/test_krb5.aug
|
|
|
9f41aa |
index 743bb375..f746543b 100644
|
|
|
9f41aa |
--- a/lenses/tests/test_krb5.aug
|
|
|
9f41aa |
+++ b/lenses/tests/test_krb5.aug
|
|
|
9f41aa |
@@ -92,6 +92,10 @@ module Test_krb5 =
|
|
|
9f41aa |
}
|
|
|
9f41aa |
}
|
|
|
9f41aa |
}
|
|
|
9f41aa |
+ 1TS.ORG = {
|
|
|
9f41aa |
+ kdc = kerberos.1ts.org
|
|
|
9f41aa |
+ admin_server = kerberos.1ts.org
|
|
|
9f41aa |
+ }
|
|
|
9f41aa |
stanford.edu = {
|
|
|
9f41aa |
kdc = krb5auth1.stanford.edu
|
|
|
9f41aa |
kdc = krb5auth2.stanford.edu
|
|
|
9f41aa |
@@ -367,6 +371,10 @@ test Krb5.lns get fermi_str =
|
|
|
9f41aa |
}
|
|
|
9f41aa |
}
|
|
|
9f41aa |
}
|
|
|
9f41aa |
+ { "realm" = "1TS.ORG"
|
|
|
9f41aa |
+ { "kdc" = "kerberos.1ts.org" }
|
|
|
9f41aa |
+ { "admin_server" = "kerberos.1ts.org" }
|
|
|
9f41aa |
+ }
|
|
|
9f41aa |
{ "realm" = "stanford.edu"
|
|
|
9f41aa |
{ "kdc" = "krb5auth1.stanford.edu" }
|
|
|
9f41aa |
{ "kdc" = "krb5auth2.stanford.edu" }
|
|
|
9f41aa |
--
|
|
|
9f41aa |
2.24.1
|
|
|
9f41aa |
|