[augeas-devel] augeas: master - Krb5: support a [kdc] section
David Lutterkort
lutter at fedoraproject.org
Mon Oct 19 13:50:31 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=86a4b8e19fef7eaad7077d2832d24eaa2c4fefa8
Commit: 86a4b8e19fef7eaad7077d2832d24eaa2c4fefa8
Parent: cffc350201ccf21cfe885db97ba886ecc2bc6cbb
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Mon Oct 19 15:42:57 2009 +0200
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Mon Oct 19 15:42:57 2009 +0200
Krb5: support a [kdc] section
The only entry it can have so far is 'profile' - no idea what else can go
there since it's not documented in krb5.conf(5), but used, e.g. on Fedora
11
---
lenses/krb5.aug | 5 ++++-
lenses/tests/test_krb5.aug | 5 +++++
2 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/lenses/krb5.aug b/lenses/krb5.aug
index a64ac23..6d1b735 100644
--- a/lenses/krb5.aug
+++ b/lenses/krb5.aug
@@ -113,8 +113,11 @@ let instance_mapping =
eq_openbr . (mapping|comment)* . closebr . eol ] in
record "instancemapping" instance
+let kdc =
+ simple_section "kdc" /profile/
+
let lns = (comment|empty)* .
(libdefaults|login|appdefaults|realms|domain_realm
- |logging|capaths|dbdefaults|dbmodules|instance_mapping)*
+ |logging|capaths|dbdefaults|dbmodules|instance_mapping|kdc)*
let xfm = transform lns (incl "/etc/krb5.conf")
diff --git a/lenses/tests/test_krb5.aug b/lenses/tests/test_krb5.aug
index 3060664..1c09264 100644
--- a/lenses/tests/test_krb5.aug
+++ b/lenses/tests/test_krb5.aug
@@ -862,3 +862,8 @@ test Krb5.instance_mapping get "[instancemapping]
{ "value" = "" } }
{ "mapping" = "e898/*"
{ "value" = "" } } } }
+
+test Krb5.kdc get "[kdc]
+ profile = /var/kerberos/krb5kdc/kdc.conf\n" =
+ { "kdc"
+ { "profile" = "/var/kerberos/krb5kdc/kdc.conf" } }
More information about the augeas-devel
mailing list