Yubico Forum

...visit our web-store at store.yubico.com
It is currently Tue Jan 30, 2018 4:01 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: RoundCube
PostPosted: Thu Aug 14, 2008 12:01 am 
Offline

Joined: Sun Aug 10, 2008 4:43 pm
Posts: 3
I implemented Yubikey authentication for RoundCube, a web-based email client. The patch I created can be downloaded here. This patch was created against revision 1611 of the project and should work fine against the most recent release on their site (v0.2-alpha).

After applying the patch, you need to edit 3 yubikey related variables in the config/main.inc.php file to enable Yubikey authentication and specify your API key & ID. Then, you can log in normally and edit your account settings to enable Yubikey authentication for your account and to specify your particular Yubikey's public ID. In this implementation, I am using the first 12 characters of your Yubikey's output as the public ID. Note: If Yubikey authentication is not enabled in main config file, the Yubikey-specific fields on the login and settings screens will not appear.

Two screenshots of the app after applying the patch are attached to this post.

I'd be thrilled to get any kind of feedback on how this works for you. Also, I'll be happy to answer any questions regarding implementing this patch. Hopefully, this patch will find its way into the RoundCube project trunk.

-D


Top
 Profile  
Reply with quote  

Share On:

Share on Facebook FacebookShare on Twitter TwitterShare on Tumblr TumblrShare on Google+ Google+

 Post subject: Re: RoundCube
PostPosted: Tue Aug 19, 2008 2:54 pm 
Offline
Site Admin
Site Admin

Joined: Tue May 06, 2008 7:22 pm
Posts: 151
Really cool! I guess I should update my old SquirrelMail installation and use RoundCube instead... :)

The technical part of this looks fine. Maybe you could improve on the documentation side? Is there even a RoundCube manual, I couldn't find it.

/Simon


Top
 Profile  
Reply with quote  
 Post subject: Re: RoundCube
PostPosted: Fri Oct 10, 2008 7:00 pm 
Offline

Joined: Sun Aug 10, 2008 4:43 pm
Posts: 3
I have created a new patch against revision 1968. This is based on the post v0.2-beta release of RoundCube.


Top
 Profile  
Reply with quote  
 Post subject: Re: RoundCube
PostPosted: Fri Nov 28, 2008 7:43 pm 
Offline

Joined: Thu Nov 27, 2008 7:57 pm
Posts: 4
I've patched Roundcube with the patch Dirk created, here's what you've got to do:

Requierments:

- PHP
- MySQL
- Roundcube

Quick patching:

Code:
cd /var/www/html
wget http://trac.roundcube.net/attachment/ticket/1485264/roundcube_yubikey.rev1968.diff
patch -p0 < roundcube_yubikey.rev1968.diff

- Search for "$rcmail_config['yubikey'] = false;" in /var/www/html/roundcubemail/config/main.inc.php and change it to "$rcmail_config['yubikey'] = true;". Now save the changes.
- Login using your username and password.
- Go to "Personal Settings" and go all the way down where you see "Yubikey Authentication"
- Check the "Require Yubikey OTP" box.
- Point your mouse on "Yubikey ID" and put the Yubikey ID (the first 12 characters of the OTP) and save everything.

Thanks Dirk for helping me out on the last part!

Hope this helps as quick installation manual.

Regards, Jeroen.


Top
 Profile  
Reply with quote  
 Post subject: Re: RoundCube
PostPosted: Fri Feb 20, 2009 5:05 am 
Offline

Joined: Sun Aug 24, 2008 3:42 am
Posts: 7
Does the operator of RoundCube have to obtain an apiKey?

Also, this code uses a module that doesn't look like it supports signatures of the message and response.

JDiel wrote:
I've patched Roundcube with the patch Dirk created, here's what you've got to do:

Requierments:

- PHP
- MySQL
- Roundcube

Quick patching:

Code:
cd /var/www/html
wget http://trac.roundcube.net/attachment/ticket/1485264/roundcube_yubikey.rev1968.diff
patch -p0 < roundcube_yubikey.rev1968.diff

- Search for "$rcmail_config['yubikey'] = false;" in /var/www/html/roundcubemail/config/main.inc.php and change it to "$rcmail_config['yubikey'] = true;". Now save the changes.
- Login using your username and password.
- Go to "Personal Settings" and go all the way down where you see "Yubikey Authentication"
- Check the "Require Yubikey OTP" box.
- Point your mouse on "Yubikey ID" and put the Yubikey ID (the first 12 characters of the OTP) and save everything.

Thanks Dirk for helping me out on the last part!

Hope this helps as quick installation manual.

Regards, Jeroen.


Top
 Profile  
Reply with quote  
 Post subject: Re: RoundCube
PostPosted: Wed Jul 15, 2009 4:41 pm 
Offline

Joined: Wed Jul 15, 2009 3:56 pm
Posts: 1
Seems like someone developped a plugin for RoundCube 0.3-beta:

http://sourceforge.net/projects/yubikey-rc/

You may download the latest version using subversion:

Code:
svn co https://yubikey-rc.svn.sourceforge.net/svnroot/yubikey-rc


Their's no documentation relating to installation yet, but:

- Change the directory name from yubikey-rc to yubikey_rc otherwize the plugin is not found by the plugin framework.
- Activate the plugin into the config/main.inc.php file from Roundcube.
- In the yubikey_rc.php source code, change the class name to yubikey_rc as well or the class doesn't load.

Please ensure that PEAR, curl support for php5, and Curl as well are installed.


Last edited by dcn on Thu Jul 16, 2009 9:36 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: RoundCube
PostPosted: Wed Jul 15, 2009 11:21 pm 
Offline

Joined: Wed Jul 15, 2009 11:19 pm
Posts: 1
I've updated the Yubikey integration to support Roundcube 0.2.2.

Download here:
http://www.jackjson.se/yubikey/roundcub ... ubikey.zip

Diff the original 0.2.2 download if you're paranoid ;)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group