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
roundcube yubikey

Maintainers Wanted - THIS REPOSITORY HAS BEEN ADANDONED AND IS NO LONGER MAINTAINED EVEN THOUGH IT LIKELY STILL WORKS.

roundcube-yubikey-plugin

Use Yubico's YubiKey to authentication to Roundcube webmail.

The Yubikey is a USB key emulating a generic keyboard and make use of One-time Passwords to provide two factor authentication.

The plugin is known to be working with Roundcube version 1.0 to 1.3.1.

Features

Requirements

Installation

  1. Install the code in the plugin directory and name it exactly yubikey_authentication (roundcube/plugins/roundcube_yubikey_authentication/)

  2. Add the plugin name in the plugins array of the config file (config/config.inc.php formely main.inc.php). It must match the name of the directory used in #1.

    $config['plugins'] = array('roundcube_yubikey_authentication');
  3. Set your API keys in config.inc.php by visiting https://upgrade.yubico.com/getapikey/ . Copy plugins/roundcube_yubikey_authentication/config.inc.php.sample to plugins/roundcube_yubikey_authentication/config.inc.php and edit according to your API registration:

    $rcmail_config['yubikey_api_id']  = 'ID HERE'; 
    $rcmail_config['yubikey_api_key'] = 'KEY HERE';
  4. Login normally and configure your yubikey in "Settings/Server Settings" menu:

    1. Ensure "Require YubiKey OTP" is checked
    2. Set your "YubiKey ID" by simply pressing on your yubikey (only the first 12 chars will be used).
  5. Test your installation. You're done!

License

GPL2

Source

https://github.com/northox/roundcube-yubikey-plugin

Acknowledgements

This code is based on work done by Oliver Martin which was using patches from dirkm.

Contributors

Author

Danny Fullerton - Mantor Organization