]> git.donarmstrong.com Git - roundcube.git/blob - plugins/password/config.inc.php.dist
Imported Upstream version 0.3
[roundcube.git] / plugins / password / config.inc.php.dist
1 <?php
2
3 // Password Plugin options
4 // -----------------------
5 // A driver to use for password change. Default: "sql".
6 $rcmail_config['password_driver'] = 'sql';
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 //      %o is replaced with the password before the change
25 //      %n is replaced with the hashed version of the new password
26 //      %q is replaced with the hashed password before the change
27 //      %h is replaced with the imap host (from the session info)
28 //      %u is replaced with the username (from the session info)
29 //      %l is replaced with the local part of the username
30 //         (in case the username is an email address)
31 //      %d is replaced with the domain part of the username
32 //         (in case the username is an email address)
33 // Escaping of macros is handled by this module.
34 // Default: "SELECT update_passwd(%c, %u)"
35 $rcmail_config['password_query'] = 'SELECT update_passwd(%c, %u)';
36
37 // Using a password hash for %n and %q variables.
38 // Determine which hashing algorithm should be used to generate
39 // the hashed new and current password for using them within the
40 // SQL query. Requires PHP's 'hash' extension.
41 $rcmail_config['password_hash_algorithm'] = 'sha1';
42
43 // You can also decide whether the hash should be provided
44 // as hex string or in base64 encoded format.
45 $rcmail_config['password_hash_base64'] = false;
46
47
48 // Poppassd Driver options
49 // -----------------------
50 // The host which changes the password
51 $rcmail_config['password_pop_host'] = 'localhost';
52
53 // TCP port used for poppassd connections
54 $rcmail_config['password_pop_port'] = 106;
55
56
57 // SASL Driver options
58 // -------------------
59 // Additional arguments for the saslpasswd2 call
60 $rcmail_config['password_saslpasswd_args'] = '';
61
62
63 // LDAP Driver options
64 // -------------------
65 // LDAP server name to connect to. 
66 // You can provide one or several hosts in an array in which case the hosts are tried from left to right.
67 // Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com');
68 // Default: 'localhost'
69 $rcmail_config['password_ldap_host'] = 'localhost';
70
71 // LDAP server port to connect to
72 // Default: '389'
73 $rcmail_config['password_ldap_port'] = '389';
74
75 // TLS is started after connecting
76 // Using TLS for password modification is recommanded.
77 // Default: false
78 $rcmail_config['password_ldap_starttls'] = false;
79
80 // LDAP version
81 // Default: '3'
82 $rcmail_config['password_ldap_version'] = '3';
83
84 // LDAP base name (root directory)
85 // Exemple: 'dc=exemple,dc=com'
86 $rcmail_config['password_ldap_basedn'] = 'dc=exemple,dc=com';
87
88 // LDAP connection method
89 // There is two connection method for changing a user's LDAP password.
90 // 'user': use user credential (recommanded, require password_confirm_current=true)
91 // 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW)
92 // Default: 'user'
93 $rcmail_config['password_ldap_method'] = 'user';
94
95 // LDAP Admin DN
96 // Used only in admin connection mode
97 // Default: null
98 $rcmail_config['password_ldap_adminDN'] = null;
99
100 // LDAP Admin Password
101 // Used only in admin connection mode
102 // Default: null
103 $rcmail_config['password_ldap_adminPW'] = null;
104
105 // LDAP user DN mask
106 // The user's DN is mandatory and as we only have his login,
107 // we need to re-create his DN using a mask
108 // '%login' will be replaced by the current roundcube user's login
109 // '%name' will be replaced by the current roundcube user's name part
110 // '%domain' will be replaced by the current roundcube user's domain part
111 // Exemple: 'uid=%login,ou=people,dc=exemple,dc=com'
112 $rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com';
113
114 // LDAP password hash type
115 // Standard LDAP encryption type which must be one of: crypt,
116 // ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear.
117 // Please note that most encodage types require external libraries
118 // to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info.
119 // Default: 'crypt'
120 $rcmail_config['password_ldap_encodage'] = 'crypt';
121
122 // LDAP password attribute
123 // Name of the ldap's attribute used for storing user password
124 // Default: 'userPassword'
125 $rcmail_config['password_ldap_pwattr'] = 'userPassword';
126
127 // LDAP password force replace
128 // Force LDAP replace in cases where ACL allows only replace not read
129 // See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace
130 // Default: true
131 $rcmail_config['password_ldap_force_replace'] = true;
132
133
134 // DirectAdmin Driver options
135 // --------------------------
136 // The host which changes the password
137 $rcmail_config['password_directadmin_host'] = 'localhost';
138
139 // TCP port used for DirectAdmin connections
140 $rcmail_config['password_directadmin_port'] = 2222;
141
142 ?>