modified plugin AuthLDAP
version 2.4.2
This commit is contained in:
28
wp-content/plugins/authLdap-2.4.2/Vagrantfile
vendored
Normal file
28
wp-content/plugins/authLdap-2.4.2/Vagrantfile
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
$install_ldap = <<SCRIPT
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get -yq update
|
||||
apt-get -yq --no-install-suggests --no-install-recommends --force-yes install slapd ldap-utils apparmor-utils
|
||||
sudo aa-complain /usr/sbin/slapd
|
||||
SCRIPT
|
||||
|
||||
$setup_vagrant_user_environment = <<SCRIPT
|
||||
if ! grep "cd /vagrant" /home/vagrant/.profile > /dev/null; then
|
||||
echo "cd /vagrant" >> /home/vagrant/.profile
|
||||
fi
|
||||
SCRIPT
|
||||
|
||||
Vagrant.configure(2) do |config|
|
||||
config.vm.box = 'bento/ubuntu-14.04'
|
||||
config.vm.box_check_update = false
|
||||
|
||||
# LDAP port
|
||||
config.vm.network 'forwarded_port', guest: 3890, host: 3890
|
||||
|
||||
config.vm.provision 'shell', inline: $install_ldap
|
||||
config.vm.provision 'shell', privileged: false, inline: '/vagrant/.ci/OpenLDAP_run.sh', :run => 'always'
|
||||
config.vm.provision 'shell', privileged: false, inline: '/vagrant/.ci/load_fixtures.sh', :run => 'always'
|
||||
config.vm.provision 'shell', inline: $setup_vagrant_user_environment
|
||||
end
|
Reference in New Issue
Block a user