summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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':