Roundcube Community Forum

SVN Releases => Issues & Bugs => Topic started by: amaze646 on May 12, 2020, 04:07:03 AM

Title: Virtual users
Post by: amaze646 on May 12, 2020, 04:07:03 AM
Hello,

im trying to get virtual users to work. I would like to achive that user could have only identities that are clients address or aliases. Those are in different database, not roundcube one.

Bellow is what I have in my config.inc.php. I have debug enabled for sql also but I cant see any errors, nore querys on mail database.

$config['virtuser_query_dsn'] = 'mysql://mailrc:asdasdasd@1.1.1.1/mail';
$config['virtuser_query'] = 'SELECT address FROM mail.users WHERE username=%u';

$config['plugins'] = array(
        ....
        'virtuser_query',
        ....
);

I also tryed like:
$config['virtuser_query'] = array('email' => 'SELECT address FROM mail.users WHERE username=%u');

Nothing works.

Thank you and kind regards
Title: Re: Virtual users
Post by: JohnDoh on May 13, 2020, 11:00:22 AM
Quote
I would like to achive that user could have only identities that are clients address or aliases
Are you talking about logins or identitites? The virtuser_query plugin is for login aliases.