Enable LDAP support on mediawiki

Users can log in using their LDAP account (in the
ou=users,dc=kosmos,dc=org group and with the wiki attribute set to
enabled)

Add an attribute for the ldap master server, so it can be overridden in
the development environment

Refs #107
This commit is contained in:
Greg Karékinian
2019-11-04 19:03:45 +01:00
parent 484f1306da
commit a69192a863
7 changed files with 111 additions and 7 deletions

View File

@@ -0,0 +1 @@
node.default['kosmos-dirsrv']['master_hostname'] = 'ldap.kosmos.org'

View File

@@ -4,7 +4,7 @@ maintainer_email 'mail@kosmos.org'
license 'MIT'
description 'Installs/Configures 389 Directory Server'
long_description 'Installs/Configures 389 Directory Server'
version '0.1.0'
version '0.1.1'
chef_version '>= 14.0'
depends "firewall"

View File

@@ -27,7 +27,7 @@
credentials = data_bag_item("credentials", "dirsrv")
dirsrv_instance "master" do
hostname "ldap.kosmos.org"
hostname node['kosmos-dirsrv']['master_hostname']
admin_password credentials['admin_password']
suffix "dc=kosmos,dc=org"
end