source: subversion/trunk/roundcubemail/plugins/password/config.inc.php @ 2699

Last change on this file since 2699 was 2699, checked in by thomasb, 4 years ago

Plugin to copy user prefs from a Qquirrelmail installation (when a new user is registered)

File size: 3.7 KB
Line 
1<?php
2
3// Password Plugin options
4// -----------------------
5// A driver to use for password change. Default: "sql".
6$rcmail_config['password_driver'] = 'sasl';
7
8// Determine whether current password is required to change password.
9// Default: false.
10$rcmail_config['password_confirm_current'] = true;
11
12
13// SQL Driver options
14// ------------------
15// PEAR database DSN for performing the query. By default
16// Roundcube DB settings are used.
17$rcmail_config['password_db_dsn'] = '';
18
19// The SQL query used to change the password.
20// The query can contain the following macros that will be expanded as follows:
21//      %p is replaced with the plaintext new password
22//      %c is replaced with the crypt version of the new password, MD5 if available
23//         otherwise DES.
24//      %u is replaced with the username (from the session info)
25//      %o is replaced with the password before the change
26//      %h is replaced with the imap host (from the session info)
27// Escaping of macros is handled by this module.
28// Default: "SELECT update_passwd(%c, %u)"
29$rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)';
30
31
32// Poppassd Driver options
33// -----------------------
34// The host which changes the password
35$rcmail_config['password_pop_host'] = 'localhost';
36
37// TCP port used for poppassd connections
38$rcmail_config['password_pop_port'] = 106;
39
40
41// SASL Driver options
42// -------------------
43// Additional arguments for the saslpasswd2 call
44$rcmail_config['password_saslpasswd_args'] = '-u rolig';
45
46
47// LDAP Driver options
48// -------------------
49// LDAP server name to connect to.
50// You can provide one or several hosts in an array in which case the hosts are tried from left to right.
51// Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com');
52// Default: 'localhost'
53$rcmail_config['password_ldap_host'] = 'localhost';
54
55// LDAP server port to connect to
56// Default: '389'
57$rcmail_config['password_ldap_port'] = '389';
58
59// TLS is started after connecting
60// Using TLS for password modification is recommanded.
61// Default: false
62$rcmail_config['password_ldap_starttls'] = false;
63
64// LDAP version
65// Default: '3'
66$rcmail_config['password_ldap_version'] = '3';
67
68// LDAP base name (root directory)
69// Exemple: 'dc=exemple,dc=com'
70$rcmail_config['password_ldap_basedn'] = 'dc=exemple,dc=com';
71
72// LDAP connection method
73// There is two connection method for changing a user's LDAP password.
74// 'user': use user credential (recommanded, require password_confirm_current=true)
75// 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
76// Default: 'user'
77$rcmail_config['password_ldap_method'] = 'user';
78
79// LDAP Admin DN
80// Used only in admin connection mode
81// Default: null
82$rcmail_config['password_ldap_adminDN'] = null;
83
84// LDAP Admin Password
85// Used only in admin connection mode
86// Default: null
87$rcmail_config['password_ldap_adminPW'] = null;
88
89// LDAP user DN mask
90// The user's DN is mandatory and as we only have his login, we need to re-create his DN using a mask
91// '%login' will be replace by the current roundcube user's login
92// Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
93$rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com';
94
95// LDAP password hash type
96// Standard LDAP encryption type which must be one of: crypt,
97// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear.
98// Please note that most encodage types require external libraries
99// to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info.
100// Default: 'crypt'
101$rcmail_config['password_ldap_encodage'] = 'crypt';
102
103// LDAP password attribute
104// Name of the ldap's attribute used for storing user password
105// Default: 'userPassword'
106$rcmail_config['password_ldap_pwattr'] = 'userPassword';
107
108?>
Note: See TracBrowser for help on using the repository browser.