diff options
author | Peter Palfrader <peter@palfrader.org> | 2006-11-28 13:37:44 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2006-11-28 13:37:44 +0000 |
commit | b4b1d445e00a51ef0b433d0c823b429b90382ae3 (patch) | |
tree | e3e3414d666311cfa5b1c4071efc2f18d66b709b | |
parent | 17949318621ad28f9a2181a1e6aa16223d2beb4f (diff) |
Property allowfrom
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@248 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-x | bin/ldap2apache | 8 |
1 files changed, 7 insertions, 1 deletions
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 << " </Location>" config << "# </Directory>" if property['cgi-bin'] == "yes" |