Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

config.inc.php.dist 18KB

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