Browse Source

Initial commit

master
Alice Gaudon 2 years ago
commit
ad21f20024
3 changed files with 34 additions and 0 deletions
  1. +1
    -0
      .gitignore
  2. +18
    -0
      composer.json
  3. +15
    -0
      config.inc.php.dist

+ 1
- 0
.gitignore View File

@ -0,0 +1 @@
config.inc.php

+ 18
- 0
composer.json View 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
- 0
config.inc.php.dist View 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…
Cancel
Save