The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel LogMeIn Script

Discussion in 'cPanel Developers' started by BPWebSolutions, Jan 21, 2012.

  1. BPWebSolutions

    BPWebSolutions Registered

    Joined:
    Jan 21, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,
    My question is aimed at users who are familiar with the LogMeIn script provided by cPanel!
    SecureRemoteLogins < AllDocumentation < TWiki

    I am trying to develop a way to log users straight into cPanel through my application. I have so far been successful, but I am having problems with one thing.

    The script does not seem to take note of the 'goto_uri' variable. I have even gone so far as changing the revelent line in the logmein.pm file to:

    my $goto_uri = 'stats/bandwidth.html';

    But when visiting the generated URL, I am simply taken to the main cpanel page rather than the bandwidth page.

    Has anyone had issues with this?
    Thanks
    Ben
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Is CSRF protection enabled on the server? You can see if it is by logging into cPanel and seeing if there's /cpsess(bunch of numbers here)/ in the URL.
     
  3. BPWebSolutions

    BPWebSolutions Registered

    Joined:
    Jan 21, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I submitted a ticket to cPanel about it, and it turns out it was a issue they need to fix!
     
Loading...

Share This Page