nc-env / templates / template04-ldap /
@pmarini pmarini authored on 24 Mar 2023
..
artifacts use env in Vagrantfile to provide environment variables; do not create additional system user; update base image from Vagrant cloud 2 years ago
Readme.md use env in Vagrantfile to provide environment variables; do not create additional system user; update base image from Vagrant cloud 2 years ago
Vagrantfile use env in Vagrantfile to provide environment variables; do not create additional system user; update base image from Vagrant cloud 2 years ago
provision.sh use env in Vagrantfile to provide environment variables; do not create additional system user; update base image from Vagrant cloud 2 years ago
Readme.md

OpenLDAP server

Setup

  • Assuming that the copy of the template is called ldap-instance, move to folder ldap-instance.
  • Check the content of folder artifacts
File name Description
config.php phpLdapAdmin configuration file
`debconf-slapd.conf Pre-filled answers to questions for silent installation of slapd
functions.php See this PR
phpldapadmin.conf Apache virtual host file
rootCA.pem The rootCA previously created in your host machine
rootCA-key.pem The rootCA key previously created in your host machine
  • Open Vagrantfile and fill in the values of the following variables parameters:
    • lxd.name: The name of the container (it is recommended to give the same name as the folder, in this example nc-instance
    • MACHINE_HOSTNAME: The hostname of the container (it is recommended to give the same name as the folder, plus the domain, in this example nc-instance.localenv.com
  • Create folder log
  • Run vagrant up > log/provisioning.log
  • Make sure your system is able to resolve the domain name that you specified in variable MACHINE_HOSTNAME, for example by adding an entry in /etc/hosts
  • Start using your environment