From b4b1d445e00a51ef0b433d0c823b429b90382ae3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 28 Nov 2006 13:37:44 +0000 Subject: Property allowfrom git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@248 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- bin/ldap2apache | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/ldap2apache b/bin/ldap2apache index d1b74a1..2722129 100755 --- a/bin/ldap2apache +++ b/bin/ldap2apache @@ -185,7 +185,13 @@ clients.each{ |c| config << " AddHandler server-parsed .shtml" if property['ssi'] == 'yes' config << "" config << " Order allow,deny" - config << " Allow from all" + if property['allowfrom'] + property['allowfrom'].split(/ */).each do |l| + config << " Allow from #{l}" + end + else + config << " Allow from all" + end config << " " config << "# " if property['cgi-bin'] == "yes" -- cgit v1.2.3