From 6c449155dddaf64dfe9fab560e9f837ffb020851 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 12 Dec 2001 15:37:47 +0000 Subject: cfengine: Add libapache-mod-auth-shadow (using auth-pam as skeleton). --- cfengine/cf.services.web | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/cfengine/cf.services.web b/cfengine/cf.services.web index d27c561..c0510e4 100644 --- a/cfengine/cf.services.web +++ b/cfengine/cf.services.web @@ -277,6 +277,38 @@ editfiles: EndGroup UnsetAbort "^# END CFENGINE$" EndGroup + # + # LoadModule authshadow_module /usr/lib/apache/1.3/mod_auth_shadow.so + # + # + # + # AuthShadow Off + # + # + # + BeginGroupIfFileExists "/usr/lib/apache/1.3/mod_auth_shadow.so" + ResetSearch "1" +# bug! UnCommentLinesMatching "^#[[:blank:]]*LoadModule[[:blank:]]+authshadow_module[[:blank:]].*" + LocateLineMatching "^#[[:blank:]]*LoadModule[[:blank:]]+authshadow_module[[:blank:]]+/usr/lib/apache/1.3/mod_auth_shadow.so$" + ReplaceLineWith "LoadModule authshadow_module /usr/lib/apache/1.3/mod_auth_shadow.so" + CatchAbort + AbortAtLineMatching "^# END CFENGINE$" + LocateLineMatching "^# BEGIN CFENGINE$" + BeginGroupIfNoSuchLine "" + InsertLine "" + InsertLine " " + InsertLine " " + InsertLine "" + EndGroup + ResetSearch "1" + LocateLineMatching "^# BEGIN CFENGINE$" + LocateLineMatching "^$" + LocateLineMatching "[[:blank:]]+" + BeginGroupIfNoLineMatching "[[:blank:]]+AuthShadow Off" + InsertLine " AuthShadow Off" + EndGroup + UnsetAbort "^# END CFENGINE$" + EndGroup } processes: "apache" restart "/etc/init.d/apache restart" -- cgit v1.2.3