Initial commit
This commit is contained in:
commit
ad21f20024
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
config.inc.php
|
18
composer.json
Normal file
18
composer.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "arisuongaku/virtuser_identity_autoupdate",
|
||||
"type": "roundcube-plugin",
|
||||
"description": "Updates user's identities on login based on aliases from virtuser_query. Update rules are configurable.",
|
||||
"license": "",
|
||||
"version": "0.1",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Alice Gaudon",
|
||||
"email": "alice@gaudon.pro",
|
||||
"role": "Lead"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0",
|
||||
"roundcube/plugin-installer": ">=0.1.3"
|
||||
}
|
||||
}
|
15
config.inc.php.dist
Normal file
15
config.inc.php.dist
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$conf = $config['virtuser_identity_autoupdate'] = array();
|
||||
|
||||
// Enables (true) or disables (false) the plugin
|
||||
$conf['update_on_login'] = true;
|
||||
|
||||
// Remove identities for which the email address is unknown for this user
|
||||
$conf['remove_unknown_alias_identities'] = true;
|
||||
|
||||
// Connection to the database which holds user aliases information
|
||||
$conf['dsn'] = '';
|
||||
|
||||
// Query all aliases for a given user. '%u' will be replaced with the username.
|
||||
// Example : SELECT aliases.email FROM aliases LEFT JOIN users ON aliases.user_id=users.id WHERE users.name="%u"
|
||||
$conf['user_aliases_query'] = '';
|
Loading…
Reference in New Issue
Block a user