[augeas-devel] [PATCH] nsswitch.conf lens missing "compat" databases

Travis Groth tgroth at gmail.com
Thu Jan 19 15:52:22 UTC 2012


Hi,

While testing some configuration updates in puppet, we've discovered that the nsswitch.conf lens is missing a few databases that are available on Linux to redirect the compat/nis queries to different sources for netgroups, etc.  They were probably missed as they aren't explicitly listed in the man page, but mentioned under "Interaction with +/- syntax (compat mode)".  The fix is pretty trivial - see below.  Hoping this can get into the next release as we need this functionality in our environment shortly.

Thanks,

Travis

-----

diff --git a/lenses/nsswitch.aug b/lenses/nsswitch.aug
index c675f29..ec8e830 100644
--- a/lenses/nsswitch.aug
+++ b/lenses/nsswitch.aug
@@ -77,6 +77,9 @@ let database =
                  | "services"
                  | "shadow"
                  | "sudoers"
+                  | "passwd_compat"
+                  | "group_compat"
+                  | "shadow_compat"
    in [ label "database" . store database_kw
               . sep_colon
               . (Build.opt_list




More information about the augeas-devel mailing list