forked from listerr/ap4rc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.inc.php.dist
47 lines (39 loc) · 2.34 KB
/
config.inc.php.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
/**
* ap4rc configuration file
*/
// When should an application password expire (Default: "2 MONTH")?
$config['ap4rc_expire_interval'] = "2 MONTH";
// When should the WebUI warn about expiring passwords (Default: "1 WEEK")?
$config['ap4rc_warning_interval'] = "1 WEEK";
// How long should generated passwords be (Default: 64)?
$config['ap4rc_generated_password_length'] = 64;
// Which characters are allowed in an application name (Default: 0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,!?(){}[]/*^+%@-)?
$config['application_password_characters'] = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.,!?(){}[]/*^+%@-)?';
// Username format:
// - 1 = "username@application" (Default)
// -- Dovecot is configured to select by username where "domain" is the application.
// - 2 = "username" / [email protected] (use same username everywhere)
// -- Dovecot is configured to select by username and password.
// - 3 = "[email protected]"
// -- Dovecot is configured to select by id (last N chars) and domain
// - 4 = "[email protected]" (id is all but first two chars of username)
// -- Dovecot is configured to select by id from all but FIRST 2 chars.
// -- (So, "[email protected]" and "[email protected]" lookup the same id)
$config['ap4rc_username_format'] = 1;
// If using options 3 or 4 for ap4rc_username_format, pad to this many digits:
// Default: 4 e.g. "8 -> 0008". If you have lots of users / frequent password
// expiry, then you may require more digits for format 3.
$config['ap4rc_aid_pad'] = 4;
// Always hide/show application name column? (true/false)
// (Default: auto - show only if username format does not contain application name.)
// $config['ap4rc_show_application'] = false;
// Use strict user_id lookup?
// (Default: false - assume usernames are unique)
// Roundcube's users table has separate columns for username and mail_host.
// username is not guaranteed to be unique in multi-host/domain setups.
// Setting this to true will lookup application_passwords only for the logged in user_id.
// Setting this to false will lookup application_passwords by username. (Assume username: "john", mail_host: "localhost"
// is the same user as: username: "john" mail_host: "mail.example.com")
// New installs recommended to set this to true.
$config['ap4rc_strict_userid_lookup'] = false;