+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 27

Thread: RC plugin autologin from CMS or Portal ...

  1. #1
    lacri's Avatar
    lacri is offline Registered User
    Join Date
    Jan 2009
    Location
    Lutherstadt Wittenberg, Germany
    Posts
    179
    Downloads
    5
    Uploads
    0

    Default RC plugin autologin from CMS or Portal ...

    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
    Attached Files
    Last edited by lacri; 06-17-2009 at 01:14 PM. Reason: new version

  2. #2
    mst3kroqs is offline Registered User
    Join Date
    Jul 2008
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Shouldn't:

    Code:
         // 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:
         // 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'))));
    ??

  3. #3
    CarlB is offline Registered User
    Join Date
    Jun 2009
    Posts
    10
    Downloads
    1
    Uploads
    0

    Default

    Very nice!

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

    Thank you.

  4. #4
    komunikasys is offline Roundcube Newcomer
    Join Date
    Dec 2009
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default

    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

  5. #5
    flattery is offline Registered User
    Join Date
    Nov 2009
    Posts
    17
    Downloads
    0
    Uploads
    0

    Default

    One quick and dirty way to do it is to edit the skin file.
    /skins/default/includes/taskbar.html


    Quote Originally Posted by komunikasys View Post
    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

  6. #6
    cftt is offline Roundcube Newcomer
    Join Date
    May 2010
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default

    don't seem to work en 0.4 beta!

    Any workaround?

  7. #7
    TTrek is offline Roundcube Newcomer
    Join Date
    Dec 2009
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default

    Hi,
    did you find a fix?

  8. #8
    loproc is offline Roundcube Newcomer
    Join Date
    Aug 2010
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default

    Quote Originally Posted by cftt View Post
    don't seem to work en 0.4 beta!

    Any workaround?
    Yup, in the following:
    PHP Code:
        // 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:
    PHP Code:
        // change action to login
        
    if ($args['task'] == 'login' && empty($args['action']) && empty($_SESSION['user_id']) && !empty($autologin)) {
          
    $args['action'] = 'login'

  9. #9
    darkfly is offline Roundcube Newcomer
    Join Date
    Oct 2010
    Posts
    1
    Downloads
    1
    Uploads
    0

    Default

    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 '<form name="roundcubelogin" action="http://mydomain.com/Webmail/?_task=mail" method="post" target="roundcube">
    <input type="hidden" name="_timezone" value="_default_" />
    <input type="hidden" name="_task" value="mail" />
    <input type="hidden" name="_autologin" value="1" />
    <input type="hidden" name="_user" value="email@mydomain.com" />
    <input type="hidden" name="_host" value="mydomain.com:143" />
    <input type="hidden" name="_pass" value="'.$_SESSION['userpassword'].'" />
    </form>';


    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:
    <input type="hidden" name="_host" value="ssl://mydomain.com:143" />
    same problem


    What s wrong? any idea? Thanks

  10. #10
    stewx is offline Roundcube Newcomer
    Join Date
    Oct 2010
    Posts
    1
    Downloads
    0
    Uploads
    0

    Default

    Has anyone actually gotten this plugin to work? I've been trying in vain for a day or so...

+ Reply to Thread
Page 1 of 3 1 2 3 LastLast

LinkBacks (?)

  1. 06-16-2009, 01:45 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts