northox / roundcube-yubikey-plugin

A plugin to use Yubico's Yubikey 2nd factor with Roundcube webmail
GNU General Public License v2.0
31 stars 6 forks source link

White page when using with roundcube version 1.0-rc #6

Closed ghost closed 10 years ago

ghost commented 10 years ago

I tried to use this plugin with the roundcube Version 1.0-rc and it just drops a white page when opening the webmail interface in my browser.


Stack trace:
#0 /daten/www/mail_jangilla_de/program/lib/Roundcube/rcube_plugin_api.php(205): yubikey_authentication->init()
#1 /daten/www/mail_jangilla_de/program/lib/Roundcube/rcube_plugin_api.php(139): rcube_plugin_api->load_plugin('yubikey_authent...')
#2 /daten/www/mail_jangilla_de/program/include/rcmail.php(128): rcube_plugin_api->load_plugins(Array, Array)
#3 /daten/www/mail_jangilla_de/program/include/rcmail.php(77): rcmail->startup()
#4 /daten/www/mail_jangilla_de/index.php(43): rcmail::get_instance(NULL)
#5 {main}

  thrown in /daten/www/mail_jangilla_de/plugins/yubikey_authentication/yubikey_authentication.php on line 62```

Lines in my config.inc.php:

> // List of active plugins (in plugins/ directory)
> $config['plugins'] = array('yubikey_authentication');
> 
> $config['yubikey'] = true;
> $config['yubikey_api_id']  = '16419';
> $config['yubikey_api_key'] = 'RfDfWgLROZRwuHiHd4WOkhOwgt8=';
northox commented 10 years ago

Hello Jan, I see you're defining the configuration (yubikeyapi*) within config/config.inc.php while I'm using the plugin's config file directly, i.e. roundcube-yubikey-plugin/config.inc.php. Seems like this is a bug for 1.0. Can you try with the later by the mean time? I should be good to commit a patch by tomorrow.

ghost commented 10 years ago

I'm so sorry! :-( Now it is working! :+1: Defined it in the wrong configuration-file.

northox commented 10 years ago

For the record. Seems like is OK for each plugins to own their own config file.

I will not push a patch for this - it works as intended by Roundcube's plugin architecture.