#!/bin/bash
#
#  Kerberize access to munin.
#

set -e

sed -i -e "s/^[[:space:]]*Allow from localhost .*/	Allow from All/" \
    -e "s%\# AuthUserFile .*%Krb5Keytab /etc/krb5.keytab.http%" \
    -e "s/\# AuthType Basic/AuthType Kerberos/" \
    -e "s/\# require valid-user/Require valid-user/" "${target}/etc/munin/apache24.conf"
