configure plugins

This commit is contained in:
Sebastian Hugentobler 2016-07-14 10:17:45 +02:00
parent faf428d9e3
commit 8182e46552
5 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[template]
src = "managesieve-config.inc.php.tmpl"
dest = "/var/lib/roundcube/plugins/managesieve/config.inc.php"
gid = 101
uid = 100
mode = "0660"

View File

@ -0,0 +1,6 @@
[template]
src = "password-config.inc.php.tmpl"
dest = "/var/lib/roundcube/plugins/password/config.inc.php"
gid = 101
uid = 100
mode = "0660"

View File

@ -0,0 +1,4 @@
<?php
$config['managesieve_port'] = 4190;
$config['managesieve_host'] = '{{getenv "DOVECOTHOST"}}';

View File

@ -0,0 +1,50 @@
<?php
$config['password_driver'] = 'ldap_simple';
$config['password_confirm_current'] = true;
$config['password_require_nonalpha'] = false;
$config['password_hosts'] = null;
$config['password_force_save'] = true;
// Default password hashing/crypting algorithm.
// Possible options: des-crypt, ext-des-crypt, md5-crypt, blowfish-crypt,
// sha256-crypt, sha512-crypt, md5, sha, smd5, ssha, samba, ad, dovecot, clear.
// For details see password::hash_password() method.
$config['password_algorithm'] = 'clear';
$config['password_algorithm_prefix'] = '{CRYPT}';
$config['password_ldap_host'] = '{{getenv "LDAPHOST"}}';
$config['password_ldap_starttls'] = {{getenv "LDAPSTARTTLS"}};
$config['password_ldap_basedn'] = '{{getenv "LDAPBASEDN"}}';
// LDAP connection method
// There is two connection method for changing a user's LDAP password.
// 'user': use user credential (recommanded, require password_confirm_current=true)
// 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
// Default: 'user'
$config['password_ldap_method'] = 'user';
// LDAP Admin DN
// Used only in admin connection mode
// Default: null
$config['password_ldap_adminDN'] = null;
// LDAP Admin Password
// Used only in admin connection mode
// Default: null
$config['password_ldap_adminPW'] = null;
// LDAP user DN mask
// The user's DN is mandatory and as we only have his login,
// we need to re-create his DN using a mask
// '%login' will be replaced by the current roundcube user's login
// '%name' will be replaced by the current roundcube user's name part
// '%domain' will be replaced by the current roundcube user's domain part
// '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
// Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
$config['password_ldap_userDN_mask'] = '{{getenv "LDAPUSERDNMASK"}}';
$config['password_ldap_encodage'] = 'crypt';
$config['password_ldap_pwattr'] = '{{getenv "LDAPPASSWORDATTRIBUTE"}}';
$config['password_ldap_force_replace'] = true;