diff options
Diffstat (limited to 'bin/ldap2apache')
-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" |