summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cfengine/cf.services.web32
1 files changed, 32 insertions, 0 deletions
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
+ #
+ # <IfModule mod_auth_shadow.c>
+ # <Location />
+ # AuthShadow Off
+ # </Location>
+ # </IfModule>
+ #
+ 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 "<IfModule mod_auth_shadow.c>"
+ InsertLine "<IfModule mod_auth_shadow.c>"
+ InsertLine " <Location />"
+ InsertLine " </Location>"
+ InsertLine "</IfModule>"
+ EndGroup
+ ResetSearch "1"
+ LocateLineMatching "^# BEGIN CFENGINE$"
+ LocateLineMatching "^<IfModule mod_auth_shadow.c>$"
+ LocateLineMatching "[[:blank:]]+<Location />"
+ BeginGroupIfNoLineMatching "[[:blank:]]+AuthShadow Off"
+ InsertLine " AuthShadow Off"
+ EndGroup
+ UnsetAbort "^# END CFENGINE$"
+ EndGroup
}
processes:
"apache" restart "/etc/init.d/apache restart"