mirror of
https://github.com/YunoHost-Apps/roundcube_ynh.git
synced 2024-09-03 20:16:28 +02:00
[enh] Allow the user to define a local configuration
This commit is contained in:
parent
ad0ba39c26
commit
e081a7cbaf
1 changed files with 57 additions and 48 deletions
|
@ -85,34 +85,34 @@ $config['skin'] = 'larry';
|
||||||
|
|
||||||
// Enable YunoHost users search in the address book.
|
// Enable YunoHost users search in the address book.
|
||||||
$config['ldap_public']['yunohost'] = array(
|
$config['ldap_public']['yunohost'] = array(
|
||||||
'name' => 'YunoHost Users',
|
'name' => 'YunoHost Users',
|
||||||
'hosts' => array('localhost'),
|
'hosts' => array('localhost'),
|
||||||
'port' => 389,
|
'port' => 389,
|
||||||
'user_specific' => false,
|
'user_specific' => false,
|
||||||
'base_dn' => 'ou=users,dc=yunohost,dc=org',
|
'base_dn' => 'ou=users,dc=yunohost,dc=org',
|
||||||
'scope' => 'list',
|
'scope' => 'list',
|
||||||
'filter' => '(objectClass=mailAccount)',
|
'filter' => '(objectClass=mailAccount)',
|
||||||
'hidden' => false,
|
'hidden' => false,
|
||||||
'searchonly' => true,
|
'searchonly' => true,
|
||||||
'fieldmap' => array(
|
'fieldmap' => array(
|
||||||
'name' => 'uid',
|
'name' => 'uid',
|
||||||
'surname' => 'sn',
|
'surname' => 'sn',
|
||||||
'firstname' => 'givenName',
|
'firstname' => 'givenName',
|
||||||
'email' => 'mail:*',
|
'email' => 'mail:*',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
// List of active plugins (in plugins/ directory)
|
// List of active plugins (in plugins/ directory)
|
||||||
$config['plugins'] = array(
|
$config['plugins'] = array(
|
||||||
'archive',
|
'archive',
|
||||||
'zipdownload',
|
'zipdownload',
|
||||||
// additionnal plugins
|
// additionnal plugins
|
||||||
'http_authentication',
|
'http_authentication',
|
||||||
'managesieve',
|
'managesieve',
|
||||||
'markasjunk',
|
'markasjunk',
|
||||||
'new_user_dialog',
|
'new_user_dialog',
|
||||||
'new_user_identity',
|
'new_user_identity',
|
||||||
// installed plugins
|
// installed plugins
|
||||||
);
|
);
|
||||||
|
|
||||||
// ----------------------------------
|
// ----------------------------------
|
||||||
|
@ -131,28 +131,37 @@ $config['logout_url'] = 'https://'.$main_domain.'/yunohost/sso/?action=logout';
|
||||||
|
|
||||||
// -- ldapAliasSync
|
// -- ldapAliasSync
|
||||||
$config['ldapAliasSync'] = array(
|
$config['ldapAliasSync'] = array(
|
||||||
// Mail parameters
|
// Mail parameters
|
||||||
'mail' => array(
|
'mail' => array(
|
||||||
'dovecot_seperator' => '*',
|
'dovecot_seperator' => '*',
|
||||||
),
|
),
|
||||||
// LDAP parameters
|
// LDAP parameters
|
||||||
'ldap' => array(
|
'ldap' => array(
|
||||||
'bind_dn' => '',
|
'bind_dn' => '',
|
||||||
),
|
),
|
||||||
# 'user_search' holds all config variables for the user search
|
# 'user_search' holds all config variables for the user search
|
||||||
'user_search' => array(
|
'user_search' => array(
|
||||||
'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org',
|
'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org',
|
||||||
'filter' => '(objectClass=mailAccount)',
|
'filter' => '(objectClass=mailAccount)',
|
||||||
'mail_by' => 'attribute',
|
'mail_by' => 'attribute',
|
||||||
'attr_mail' => 'mail',
|
'attr_mail' => 'mail',
|
||||||
'attr_name' => 'cn',
|
'attr_name' => 'cn',
|
||||||
),
|
),
|
||||||
# 'alias_search' holds all config variables for the alias search
|
# 'alias_search' holds all config variables for the alias search
|
||||||
'alias_search' => array(
|
'alias_search' => array(
|
||||||
'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org',
|
'base_dn' => 'uid=%local,ou=users,dc=yunohost,dc=org',
|
||||||
'filter' => '(objectClass=mailAccount)',
|
'filter' => '(objectClass=mailAccount)',
|
||||||
'mail_by' => 'attribute',
|
'mail_by' => 'attribute',
|
||||||
'attr_mail' => 'mailalias',
|
'attr_mail' => 'mailalias',
|
||||||
'attr_name' => 'cn',
|
'attr_name' => 'cn',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// ----------------------------------
|
||||||
|
// LOCAL CONFIGURATION
|
||||||
|
// ----------------------------------
|
||||||
|
|
||||||
|
$local_config = dirname(__FILE__) . '/local.inc.php';
|
||||||
|
if (file_exists($local_config)) {
|
||||||
|
include $local_config;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue