Author Topic: RC plugin autologin from CMS or Portal ...  (Read 24900 times)

Offline lacri

  • Full Member
  • ***
  • Posts: 179
    • http://www.php-lexikon.de
RC plugin autologin from CMS or Portal ...
« on: June 16, 2009, 03:58:45 AM »
I have realisized based on the autologon sample plugin an plugin thats make login from a portal or other external site or cms into roundcube possible.

i attached the plugin with a little guide inside.

Tested with current SVN 2646

Change
attachment replace with new version for little bit more security
the pass is no more submittet as plaintext
« Last Edit: June 17, 2009, 08:14:20 AM by lacri »


Offline mst3kroqs

  • Newbie
  • *
  • Posts: 3
RC plugin autologin from CMS or Portal ...
« Reply #2 on: August 29, 2009, 06:57:30 PM »
Shouldn't:

Code: [Select]
    // decode pass, revert and replace key
   $_POST['_pass'] = str_replace('*yourkey*','',base64_decode(strrev(get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'))));


be:

Code: [Select]
    // decode pass, revert and replace key
   $args['_pass'] = str_replace('*yourkey*','',base64_decode(strrev(get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'))));


??

Offline CarlB

  • Jr. Member
  • **
  • Posts: 11
RC plugin autologin from CMS or Portal ...
« Reply #3 on: November 26, 2009, 12:28:05 PM »
Very nice!

Is there any way to use this to open a new message with the to: pre filled?

Thank you.

Offline komunikasys

  • Newbie
  • *
  • Posts: 1
RC plugin autologin from CMS or Portal ...
« Reply #4 on: December 24, 2009, 12:23:59 AM »
Could someone tell me how to remove logout button once the user login from other cms, and instead of using logout button on roundcube, i would like to use logout button from my cms. So what script do i have to add on my logout acction?

Best regards

Raymond Victorio

Offline flattery

  • Jr. Member
  • **
  • Posts: 17
RC plugin autologin from CMS or Portal ...
« Reply #5 on: April 15, 2010, 11:43:03 AM »
One quick and dirty way to do it is to edit the skin file.
/skins/default/includes/taskbar.html


Quote from: komunikasys;24205
Could someone tell me how to remove logout button once the user login from other cms, and instead of using logout button on roundcube, i would like to use logout button from my cms. So what script do i have to add on my logout acction?

Best regards

Raymond Victorio

Offline cftt

  • Newbie
  • *
  • Posts: 1
RC plugin autologin from CMS or Portal ...
« Reply #6 on: May 06, 2010, 04:28:01 AM »
don't seem to work en 0.4 beta!

Any workaround?

Offline TTrek

  • Newbie
  • *
  • Posts: 1
RC plugin autologin from CMS or Portal ...
« Reply #7 on: May 18, 2010, 10:57:42 AM »
Hi,
did you find a fix?

Offline loproc

  • Newbie
  • *
  • Posts: 3
RC plugin autologin from CMS or Portal ...
« Reply #8 on: August 30, 2010, 10:59:49 AM »
Quote from: cftt;27283
don't seem to work en 0.4 beta!

Any workaround?


Yup, in the following:
    // change action to login
    
if ($args['task'] == 'mail' && empty($args['action']) && empty($_SESSION['user_id']) && !empty($autologin)) {
      
$args['action'] = 'login';


change "mail" to "login" so you have the following:
    // change action to login
    
if ($args['task'] == 'login' && empty($args['action']) && empty($_SESSION['user_id']) && !empty($autologin)) {
      
$args['action'] = 'login';

Offline darkfly

  • Newbie
  • *
  • Posts: 1
RC plugin autologin from CMS or Portal ...
« Reply #9 on: October 02, 2010, 09:17:43 PM »
I have instaled the autologin plugin for test,and i can't put it working!

I go to the roundcube login page but with error "bad username or password".

I know the value are working, because in the login form, the email address is good, so i think is a password problem.

I use this code:

$userpassword = "testpassword";

$_SESSION['userpassword'] = strrev(base64_encode('ot-%IrA3e+=3$Oug7yheBi%k'.$userpassword));

echo 'http://mydomain.com/Webmail/?_task=mail" method="post" target="roundcube">






';


in autologin.php i have:
// decode pass, revert and replace key
         $_POST['_pass'] = str_replace('ot-%IrA3e+=3$Oug7yheBi%k','',base64_decode(strrev(get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'))));


i have the same key in the 2files.

i have try with:

same problem


What s wrong? any idea? Thanks

Offline stewx

  • Newbie
  • *
  • Posts: 1
RC plugin autologin from CMS or Portal ...
« Reply #10 on: October 14, 2010, 08:22:53 AM »
Has anyone actually gotten this plugin to work?  I've been trying in vain for a day or so...

Offline timtraver

  • Jr. Member
  • **
  • Posts: 36
RC plugin autologin from CMS or Portal ...
« Reply #11 on: November 22, 2010, 03:36:40 AM »
Quote from: stewx;30727
Has anyone actually gotten this plugin to work?  I've been trying in vain for a day or so...

yes, it works like it says it does. what is the problem that you are having?

The real thing that I am running into is if you don't logout of the webmail client, and you try and do the autologin from the CMS to another account, the session isn't killed and it goes to the previous account.

Anyone know how to kill the session before it tries to do the autologin? I've tried a bunch of ways of killing the session cookie, and killing the session in the autologin code, but to no avail...

Tim

Offline mikelsoft

  • Newbie
  • *
  • Posts: 2
RC plugin autologin from CMS or Portal ...
« Reply #12 on: December 16, 2010, 10:44:35 PM »
using 0.5 beta

i still fail to use the plugin

here are my config

if ($args['task'] == 'login' && empty($args['action']) && empty($_SESSION['user_id']) && !empty($autologin)) {
      $args['action'] = 'login';

      // decode pass, revert and replace key
                  $args['_pass'] = str_replace('mykey','',base64_decode(strrev(get_input_value('_pass', RCUBE_INPUT_POST, true, 'ISO-8859-1'))));

the form
$password='pa33word';

$_SESSION['userpassword'] = strrev(base64_encode('mykey'.$password));


echo '';

give me login error help please anyone
« Last Edit: December 16, 2010, 10:48:49 PM by mikelsoft »

Offline CarlB

  • Jr. Member
  • **
  • Posts: 11
RC plugin autologin from CMS or Portal ...
« Reply #13 on: January 31, 2011, 02:26:09 PM »
Is it possible to use this with 0.5 ?

Offline Muaythaitv

  • Newbie
  • *
  • Posts: 3
RC plugin autologin from CMS or Portal ...
« Reply #14 on: February 26, 2011, 03:55:06 PM »
Quote from: CarlB;32867
Is it possible to use this with 0.5 ?

Look here : autologon.php in trunk/plugins/autologon ? Roundcube Webmail

At minimum it miss
$args['cookiecheck'] = false;
$args['valid'] = true;

in function authenticate