annotate plugins/password/config.inc.php @ 36:a36beb7d3ea2

minor stuff left-over from january
author Charlie Root
date Sat, 29 Dec 2018 05:10:28 -0500
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
36
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
1 <?php
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
2
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
3 // Password Plugin options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
4 // -----------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
5 // A driver to use for password change. Default: "sql".
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
6 // See README file for list of supported driver names.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
7 $config['password_driver'] = 'sql';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
8
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
9 // Determine whether current password is required to change password.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
10 // Default: false.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
11 $config['password_confirm_current'] = true;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
12
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
13 // Require the new password to be a certain length.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
14 // set to blank to allow passwords of any length
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
15 $config['password_minimum_length'] = 0;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
16
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
17 // Require the new password to contain a letter and punctuation character
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
18 // Change to false to remove this check.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
19 $config['password_require_nonalpha'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
20
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
21 // Enables logging of password changes into logs/password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
22 $config['password_log'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
23
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
24 // Comma-separated list of login exceptions for which password change
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
25 // will be not available (no Password tab in Settings)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
26 $config['password_login_exceptions'] = null;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
27
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
28 // Array of hosts that support password changing.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
29 // Listed hosts will feature a Password option in Settings; others will not.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
30 // Example: array('mail.example.com', 'mail2.example.org');
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
31 // Default is NULL (all hosts supported).
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
32 $config['password_hosts'] = null;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
33
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
34 // Enables saving the new password even if it matches the old password. Useful
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
35 // for upgrading the stored passwords after the encryption scheme has changed.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
36 $config['password_force_save'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
37
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
38 // Enables forcing new users to change their password at their first login.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
39 $config['password_force_new_user'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
40
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
41 // Default password hashing/crypting algorithm.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
42 // Possible options: des-crypt, ext-des-crypt, md5-crypt, blowfish-crypt,
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
43 // sha256-crypt, sha512-crypt, md5, sha, smd5, ssha, samba, ad, dovecot, clear.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
44 // For details see password::hash_password() method.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
45 $config['password_algorithm'] = 'clear';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
46
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
47 // Password prefix (e.g. {CRYPT}, {SHA}) for passwords generated
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
48 // using password_algorithm above. Default: empty.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
49 $config['password_algorithm_prefix'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
50
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
51 // Path for dovecotpw/doveadm-pw (if not in the $PATH).
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
52 // Used for password_algorithm = 'dovecot'.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
53 $config['password_dovecotpw'] = '/usr/doveadm pw'; // for dovecot-2.x
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
54 //$config['password_dovecotpw'] = '/usr/local/sbin/dovecotpw'; // for dovecot-1.x
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
55
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
56 // Dovecot password scheme.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
57 // Used for password_algorithm = 'dovecot'.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
58 $config['password_dovecotpw_method'] = 'CRAM-MD5';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
59
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
60 // Enables use of password with method prefix, e.g. {MD5}$1$LUiMYWqx$fEkg/ggr/L6Mb2X7be4i1/
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
61 // when using password_algorithm=dovecot
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
62 $config['password_dovecotpw_with_method'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
63
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
64 // Iteration count parameter for Blowfish-based hashing algo.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
65 // It must be between 4 and 31. Default: 12.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
66 // Be aware, the higher the value, the longer it takes to generate the password hashes.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
67 $config['password_blowfish_cost'] = 12;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
68
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
69 // Number of rounds for the sha256 and sha512 crypt hashing algorithms.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
70 // Must be at least 1000. If not set, then the number of rounds is left up
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
71 // to the crypt() implementation. On glibc this defaults to 5000.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
72 // Be aware, the higher the value, the longer it takes to generate the password hashes.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
73 //$config['password_crypt_rounds'] = 50000;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
74
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
75 // This option temporarily disables the password change functionality.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
76 // Use it when the users database server is in maintenance mode or sth like that.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
77 // You can set it to TRUE/FALSE or a text describing the reason
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
78 // which will replace the default.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
79 $config['password_disabled'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
80
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
81
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
82 // SQL Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
83 // ------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
84 // PEAR database DSN for performing the query. By default
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
85 // Roundcube DB settings are used.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
86 $config['password_db_dsn'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
87
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
88 // The SQL query used to change the password.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
89 // The query can contain the following macros that will be expanded as follows:
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
90 // %p is replaced with the plaintext new password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
91 // %P is replaced with the crypted/hashed new password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
92 // according to configured password_method
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
93 // %o is replaced with the old (current) password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
94 // %O is replaced with the crypted/hashed old (current) password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
95 // according to configured password_method
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
96 // %h is replaced with the imap host (from the session info)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
97 // %u is replaced with the username (from the session info)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
98 // %l is replaced with the local part of the username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
99 // (in case the username is an email address)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
100 // %d is replaced with the domain part of the username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
101 // (in case the username is an email address)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
102 // Deprecated macros:
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
103 // %c is replaced with the crypt version of the new password, MD5 if available
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
104 // otherwise DES. More hash function can be enabled using the password_crypt_hash
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
105 // configuration parameter.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
106 // %D is replaced with the dovecotpw-crypted version of the new password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
107 // %n is replaced with the hashed version of the new password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
108 // %q is replaced with the hashed password before the change
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
109 // Escaping of macros is handled by this module.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
110 // Default: "SELECT update_passwd(%c, %u)"
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
111 $config['password_query'] = 'SELECT update_passwd(%c, %u)';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
112
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
113 // By default the crypt() function which is used to create the %c
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
114 // parameter uses the md5 algorithm (deprecated, use %P).
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
115 // You can choose between: des, md5, blowfish, sha256, sha512.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
116 $config['password_crypt_hash'] = 'md5';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
117
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
118 // By default domains in variables are using unicode.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
119 // Enable this option to use punycoded names
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
120 $config['password_idn_ascii'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
121
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
122 // Using a password hash for %n and %q variables (deprecated, use %P).
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
123 // Determine which hashing algorithm should be used to generate
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
124 // the hashed new and current password for using them within the
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
125 // SQL query. Requires PHP's 'hash' extension.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
126 $config['password_hash_algorithm'] = 'sha1';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
127
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
128 // You can also decide whether the hash should be provided
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
129 // as hex string or in base64 encoded format.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
130 $config['password_hash_base64'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
131
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
132
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
133 // Poppassd Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
134 // -----------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
135 // The host which changes the password (default: localhost)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
136 // Supported replacement variables:
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
137 // %n - hostname ($_SERVER['SERVER_NAME'])
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
138 // %t - hostname without the first part
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
139 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
140 // %h - IMAP host
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
141 // %z - IMAP domain without first part
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
142 // %s - domain name after the '@' from e-mail address provided at login screen
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
143 $config['password_pop_host'] = 'localhost';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
144
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
145 // TCP port used for poppassd connections (default: 106)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
146 $config['password_pop_port'] = 106;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
147
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
148
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
149 // SASL Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
150 // -------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
151 // Additional arguments for the saslpasswd2 call
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
152 $config['password_saslpasswd_args'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
153
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
154
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
155 // LDAP and LDAP_SIMPLE Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
156 // -----------------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
157 // LDAP server name to connect to.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
158 // You can provide one or several hosts in an array in which case the hosts are tried from left to right.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
159 // Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com');
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
160 // Default: 'localhost'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
161 $config['password_ldap_host'] = 'localhost';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
162
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
163 // LDAP server port to connect to
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
164 // Default: '389'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
165 $config['password_ldap_port'] = '389';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
166
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
167 // TLS is started after connecting
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
168 // Using TLS for password modification is recommended.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
169 // Default: false
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
170 $config['password_ldap_starttls'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
171
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
172 // LDAP version
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
173 // Default: '3'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
174 $config['password_ldap_version'] = '3';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
175
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
176 // LDAP base name (root directory)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
177 // Exemple: 'dc=exemple,dc=com'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
178 $config['password_ldap_basedn'] = 'dc=exemple,dc=com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
179
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
180 // LDAP connection method
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
181 // There are two connection methods for changing a user's LDAP password.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
182 // 'user': use user credential (recommended, require password_confirm_current=true)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
183 // 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
184 // Default: 'user'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
185 $config['password_ldap_method'] = 'user';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
186
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
187 // LDAP Admin DN
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
188 // Used only in admin connection mode
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
189 // Default: null
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
190 $config['password_ldap_adminDN'] = null;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
191
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
192 // LDAP Admin Password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
193 // Used only in admin connection mode
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
194 // Default: null
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
195 $config['password_ldap_adminPW'] = null;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
196
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
197 // LDAP user DN mask
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
198 // The user's DN is mandatory and as we only have his login,
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
199 // we need to re-create his DN using a mask
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
200 // '%login' will be replaced by the current roundcube user's login
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
201 // '%name' will be replaced by the current roundcube user's name part
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
202 // '%domain' will be replaced by the current roundcube user's domain part
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
203 // '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
204 // Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
205 $config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
206
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
207 // LDAP search DN
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
208 // The DN roundcube should bind with to find out user's DN
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
209 // based on his login. Note that you should comment out the default
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
210 // password_ldap_userDN_mask setting for this to take effect.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
211 // Use this if you cannot specify a general template for user DN with
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
212 // password_ldap_userDN_mask. You need to perform a search based on
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
213 // users login to find his DN instead. A common reason might be that
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
214 // your users are placed under different ou's like engineering or
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
215 // sales which cannot be derived from their login only.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
216 $config['password_ldap_searchDN'] = 'cn=roundcube,ou=services,dc=example,dc=com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
217
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
218 // LDAP search password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
219 // If password_ldap_searchDN is set, the password to use for
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
220 // binding to search for user's DN. Note that you should comment out the default
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
221 // password_ldap_userDN_mask setting for this to take effect.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
222 // Warning: Be sure to set approperiate permissions on this file so this password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
223 // is only accesible to roundcube and don't forget to restrict roundcube's access to
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
224 // your directory as much as possible using ACLs. Should this password be compromised
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
225 // you want to minimize the damage.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
226 $config['password_ldap_searchPW'] = 'secret';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
227
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
228 // LDAP search base
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
229 // If password_ldap_searchDN is set, the base to search in using the filter below.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
230 // Note that you should comment out the default password_ldap_userDN_mask setting
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
231 // for this to take effect.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
232 $config['password_ldap_search_base'] = 'ou=people,dc=example,dc=com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
233
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
234 // LDAP search filter
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
235 // If password_ldap_searchDN is set, the filter to use when
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
236 // searching for user's DN. Note that you should comment out the default
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
237 // password_ldap_userDN_mask setting for this to take effect.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
238 // '%login' will be replaced by the current roundcube user's login
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
239 // '%name' will be replaced by the current roundcube user's name part
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
240 // '%domain' will be replaced by the current roundcube user's domain part
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
241 // '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
242 // Example: '(uid=%login)'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
243 // Example: '(&(objectClass=posixAccount)(uid=%login))'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
244 $config['password_ldap_search_filter'] = '(uid=%login)';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
245
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
246 // LDAP password hash type
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
247 // Standard LDAP encryption type which must be one of: crypt,
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
248 // ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, ad, cram-md5 (dovecot style) or clear.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
249 // Set to 'default' if you want to use method specified in password_algorithm option above.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
250 // Multiple password Values can be generated by concatenating encodings with a +. E.g. 'cram-md5+crypt'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
251 // Default: 'crypt'.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
252 $config['password_ldap_encodage'] = 'crypt';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
253
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
254 // LDAP password attribute
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
255 // Name of the ldap's attribute used for storing user password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
256 // Default: 'userPassword'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
257 $config['password_ldap_pwattr'] = 'userPassword';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
258
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
259 // LDAP password force replace
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
260 // Force LDAP replace in cases where ACL allows only replace not read
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
261 // See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
262 // Default: true
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
263 $config['password_ldap_force_replace'] = true;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
264
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
265 // LDAP Password Last Change Date
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
266 // Some places use an attribute to store the date of the last password change
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
267 // The date is meassured in "days since epoch" (an integer value)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
268 // Whenever the password is changed, the attribute will be updated if set (e.g. shadowLastChange)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
269 $config['password_ldap_lchattr'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
270
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
271 // LDAP Samba password attribute, e.g. sambaNTPassword
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
272 // Name of the LDAP's Samba attribute used for storing user password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
273 $config['password_ldap_samba_pwattr'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
274
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
275 // LDAP Samba Password Last Change Date attribute, e.g. sambaPwdLastSet
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
276 // Some places use an attribute to store the date of the last password change
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
277 // The date is meassured in "seconds since epoch" (an integer value)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
278 // Whenever the password is changed, the attribute will be updated if set
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
279 $config['password_ldap_samba_lchattr'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
280
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
281 // LDAP PPolicy Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
282 // -----------------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
283
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
284 // LDAP Change password command - filename of the perl script
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
285 // Example: 'change_ldap_pass.pl'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
286 $config['password_ldap_ppolicy_cmd'] = 'change_ldap_pass.pl';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
287
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
288 // LDAP URI
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
289 // Example: 'ldap://ldap.example.com/ ldaps://ldap2.example.com:636/'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
290 $config['password_ldap_ppolicy_uri'] = 'ldap://localhost/';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
291
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
292 // LDAP base name (root directory)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
293 // Exemple: 'dc=exemple,dc=com'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
294 $config['password_ldap_ppolicy_basedn'] = 'dc=example,dc=com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
295
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
296 $config['password_ldap_ppolicy_searchDN'] = 'cn=someuser,dc=example,dc=com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
297
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
298 $config['password_ldap_ppolicy_searchPW'] = 'secret';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
299
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
300 // LDAP search filter
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
301 // Example: '(uid=%login)'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
302 // Example: '(&(objectClass=posixAccount)(uid=%login))'
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
303 $config['password_ldap_ppolicy_search_filter'] = '(uid=%login)';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
304
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
305 // CA Certificate file if in URI is LDAPS connection
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
306 $config['password_ldap_ppolicy_cafile'] = '/etc/ssl/cacert.crt';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
307
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
308
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
309
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
310 // DirectAdmin Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
311 // --------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
312 // The host which changes the password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
313 // Use 'ssl://host' instead of 'tcp://host' when running DirectAdmin over SSL.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
314 // The host can contain the following macros that will be expanded as follows:
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
315 // %h is replaced with the imap host (from the session info)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
316 // %d is replaced with the domain part of the username (if the username is an email)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
317 $config['password_directadmin_host'] = 'tcp://localhost';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
318
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
319 // TCP port used for DirectAdmin connections
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
320 $config['password_directadmin_port'] = 2222;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
321
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
322
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
323 // vpopmaild Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
324 // -----------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
325 // The host which changes the password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
326 $config['password_vpopmaild_host'] = 'localhost';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
327
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
328 // TCP port used for vpopmaild connections
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
329 $config['password_vpopmaild_port'] = 89;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
330
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
331 // Timeout used for the connection to vpopmaild (in seconds)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
332 $config['password_vpopmaild_timeout'] = 10;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
333
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
334
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
335 // cPanel Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
336 // --------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
337 // The cPanel Host name
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
338 $config['password_cpanel_host'] = 'host.domain.com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
339
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
340 // The cPanel admin username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
341 $config['password_cpanel_username'] = 'username';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
342
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
343 // The cPanel admin password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
344 $config['password_cpanel_password'] = 'password';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
345
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
346 // The cPanel admin hash
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
347 // If you prefer to use a hash (Remote Access Key) instead of plain password, enter it below.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
348 // Hash takes precedence over password auth.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
349 // You can generate a Remote Access Key in WHM -> Clusters -> Remote Access Key
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
350 $config['password_cpanel_hash'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
351
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
352 // The cPanel port to use
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
353 $config['password_cpanel_port'] = 2087;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
354
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
355
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
356 // cPanel Webmail Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
357 // -----------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
358 // The cPanel Host name
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
359 $config['password_cpanel_webmail_host'] = 'host.domain.com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
360
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
361 // The cPanel port to use
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
362 $config['password_cpanel_webmail_port'] = 2096;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
363
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
364
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
365 // XIMSS (Communigate server) Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
366 // -----------------------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
367 // Host name of the Communigate server
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
368 $config['password_ximss_host'] = 'mail.example.com';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
369
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
370 // XIMSS port on Communigate server
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
371 $config['password_ximss_port'] = 11024;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
372
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
373
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
374 // chpasswd Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
375 // ---------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
376 // Command to use (see "Sudo setup" in README)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
377 $config['password_chpasswd_cmd'] = 'sudo /usr/sbin/chpasswd 2> /dev/null';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
378
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
379
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
380 // XMail Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
381 // ---------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
382 $config['xmail_host'] = 'localhost';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
383 $config['xmail_user'] = 'YourXmailControlUser';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
384 $config['xmail_pass'] = 'YourXmailControlPass';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
385 $config['xmail_port'] = 6017;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
386
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
387
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
388 // hMail Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
389 // -----------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
390 // Remote hMailServer configuration
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
391 // true: HMailserver is on a remote box (php.ini: com.allow_dcom = true)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
392 // false: Hmailserver is on same box as PHP
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
393 $config['hmailserver_remote_dcom'] = false;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
394 // Windows credentials
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
395 $config['hmailserver_server'] = array(
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
396 'Server' => 'localhost', // hostname or ip address
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
397 'Username' => 'administrator', // windows username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
398 'Password' => 'password' // windows user password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
399 );
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
400
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
401
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
402 // Virtualmin Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
403 // -------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
404 // Username format:
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
405 // 0: username@domain
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
406 // 1: username%domain
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
407 // 2: username.domain
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
408 // 3: domain.username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
409 // 4: username-domain
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
410 // 5: domain-username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
411 // 6: username_domain
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
412 // 7: domain_username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
413 $config['password_virtualmin_format'] = 0;
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
414
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
415
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
416 // pw_usermod Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
417 // --------------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
418 // Use comma delimited exlist to disable password change for users.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
419 // See "Sudo setup" in README file.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
420 $config['password_pw_usermod_cmd'] = 'sudo /usr/sbin/pw usermod -h 0 -n';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
421
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
422
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
423 // DBMail Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
424 // -------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
425 // Additional arguments for the dbmail-users call
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
426 $config['password_dbmail_args'] = '-p sha512';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
427
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
428
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
429 // Expect Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
430 // ---------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
431 // Location of expect binary
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
432 $config['password_expect_bin'] = '/usr/bin/expect';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
433
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
434 // Location of expect script (see helpers/passwd-expect)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
435 $config['password_expect_script'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
436
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
437 // Arguments for the expect script. See the helpers/passwd-expect file for details.
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
438 // This is probably a good starting default:
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
439 // -telent -host localhost -output /tmp/passwd.log -log /tmp/passwd.log
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
440 $config['password_expect_params'] = '';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
441
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
442
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
443 // smb Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
444 // ---------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
445 // Samba host (default: localhost)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
446 // Supported replacement variables:
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
447 // %n - hostname ($_SERVER['SERVER_NAME'])
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
448 // %t - hostname without the first part
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
449 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
450 $config['password_smb_host'] = 'localhost';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
451 // Location of smbpasswd binary (default: /usr/bin/smbpasswd)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
452 $config['password_smb_cmd'] = '/usr/bin/smbpasswd';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
453
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
454 // gearman driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
455 // ---------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
456 // Gearman host (default: localhost)
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
457 $config['password_gearman_host'] = 'localhost';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
458
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
459
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
460 // Plesk/PPA Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
461 // --------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
462 // You need to allow RCP for IP of roundcube-server in Plesk/PPA Panel
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
463
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
464 // Plesk RCP Host
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
465 $config['password_plesk_host'] = '10.0.0.5';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
466
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
467 // Plesk RPC Username
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
468 $config['password_plesk_user'] = 'admin';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
469
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
470 // Plesk RPC Password
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
471 $config['password_plesk_pass'] = 'password';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
472
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
473 // Plesk RPC Port
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
474 $config['password_plesk_rpc_port'] = '8443';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
475
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
476 // Plesk RPC Path
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
477 $config['password_plesk_rpc_path'] = 'enterprise/control/agent.php';
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
478
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
479
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
480 // kasswd Driver options
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
481 // ---------------------
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
482 // Command to use
a36beb7d3ea2 minor stuff left-over from january
Charlie Root
parents:
diff changeset
483 $config['password_kpasswd_cmd'] = '/usr/bin/kpasswd';