summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-06-20 19:40:41 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-06-20 19:40:41 +0200
commit1c2cd0d8000a83fc95e3936883b3d217eb93a121 (patch)
treec07f777c00b0948480b7c85996524415bb3a709a
parents/CNAME/AAAA/ (diff)
downloadprofiles-1c2cd0d8000a83fc95e3936883b3d217eb93a121.tar.gz
profiles-1c2cd0d8000a83fc95e3936883b3d217eb93a121.tar.xz
Update phpldapadmin to match updated module.
-rw-r--r--manifests/phpldapadmin.pp21
1 files changed, 18 insertions, 3 deletions
diff --git a/manifests/phpldapadmin.pp b/manifests/phpldapadmin.pp
index 8e2b5d5..c985eb1 100644
--- a/manifests/phpldapadmin.pp
+++ b/manifests/phpldapadmin.pp
@@ -6,6 +6,7 @@
class profiles::phpldapadmin (
String $nginx_server,
Boolean $manage_server = true,
+ Stdlib::Absolutepath $www_root = '/usr/share/webapps/phpldapadmin',
) {
include ::php_fpm
@@ -13,13 +14,27 @@ class profiles::phpldapadmin (
nginx::resource::server { $nginx_server:
ipv6_enable => true,
ipv6_listen_options => '',
- www_root => '/usr/share/webapps/phpldapadmin',
+ www_root => $www_root,
index_files => ['index.php'],
}
+
class { 'phpldapadmin':
- servername => 'Adrift.Space LDAP',
- auth_type => 'cookie',
+ servername => 'Adrift.Space',
+ auth_type => 'cookie',
+ blowfish_secret => Sensitive(extlib::cache('profiles::phpldapadmin', 'blowfish', extlib::random_password(100))),
+ base_dn => ['dc=adrift,dc=space'],
+ bind_dn_template => 'uid=%s,ou=People,dc=adrift,dc=space',
+ open_tree => true,
+ }
+
+ # file { "${www_root}/config/config.php":
+ # target => $phpldapadmin::config_file,
+ # }
+
+ class { 'phpldapadmin::auto_number::search':
+ uid => 10000,
+ gid => 10000,
}
php_fpm::nginx { 'phpldapadmin':