diff options
author | Jonas Smedegaard <dr@jones.dk> | 2001-12-12 15:37:47 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2001-12-12 15:37:47 +0000 |
commit | 6c449155dddaf64dfe9fab560e9f837ffb020851 (patch) | |
tree | a7088331c7820365676c65a95f8b74668cc32153 /cfengine | |
parent | 415dab08374f20278dc96c395298049a0810e40b (diff) |
cfengine: Add libapache-mod-auth-shadow (using auth-pam as skeleton).
Diffstat (limited to 'cfengine')
-rw-r--r-- | cfengine/cf.services.web | 32 |
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" |