#!/bin/bash

. ${TOOLKIT}-functions.sh

module="phpldapadmin"
file=`filepath ku-$module.conf` || exit 1
allowed=`jtconf ldap.${module}_allow` || exit_missing_define "ldap.${module}_allow"

string=
for allow in $allowed
do
	string="$string	Allow from $allow\n"
done

sed -e "s#-ku-temp-tag-for-inserting-allow-ku-#$string#" $file > $file.tmp

exit 0
