Browse Source

Rename plugin as it does not depend on virtuser_query and update config strings

master
Alice Gaudon 2 years ago
parent
commit
53b951a3b6
3 changed files with 15 additions and 14 deletions
  1. +2
    -2
      composer.json
  2. +6
    -3
      config.inc.php.dist
  3. +7
    -9
      identity_db.php

+ 2
- 2
composer.json View File

@ -1,7 +1,7 @@
{
"name": "arisuongaku/virtuser_identity_autoupdate",
"name": "arisuongaku/identity_db",
"type": "roundcube-plugin",
"description": "Updates user's identities on login based on aliases from virtuser_query. Update rules are configurable.",
"description": "Updates user's identities on login based on a database query. Some update rules are configurable.",
"license": "MIT",
"version": "0.1",
"authors": [


+ 6
- 3
config.inc.php.dist View File

@ -1,15 +1,18 @@
<?php
$conf = $config['virtuser_identity_autoupdate'] = array();
$conf = 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;
$conf['remove_unknown_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'] = '';
$conf['identities_query'] = '';
// Finally register to the global config
$config['identity_db'] = $conf;

virtuser_identities_autoupdate.php → identity_db.php View File


Loading…
Cancel
Save