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.

Problem with passing throught login

Discussion in 'cPanel Developers' started by mikesta, Jan 27, 2009.

  1. mikesta

    mikesta Member

    Joined:
    Oct 30, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi,
    I just tried to write my own joomla cpanel bridge to login and it works fine so far, but there is one problem left, I would need your help.

    I tried different ways but finally made a simple redirect to

    Code:
    http://SERVER:2082/login?user=Username&pass=Password
    with the necessary username and password. The problem is that I get an Site with that warning:

    There users have to click the button to move on. So is there a way to allow reffering to a special domain or something else, so that users get directly to their cpanel account without logging in?

    Or has someone an idea how the cookie has to be build to enable an direct login?
     
  2. MattDees

    MattDees cPanel Product Owner
    Staff Member

    Joined:
    Apr 29, 2005
    Messages:
    417
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
  3. mikesta

    mikesta Member

    Joined:
    Oct 30, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi, thanks I already had a look at that script.

    The problem is that I have installed my login page at an .org domain and the cpanel server is located at the .com url.

    So even with your script, I am getting that warning. Seems that it is because of the different IP´s of the two URL´s.

    Any idea on that?
     
  4. 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
    Are both IPs on the same server? If yes, have you attempted to restart cpsrvd as recommended by the error message?
     
  5. mikesta

    mikesta Member

    Joined:
    Oct 30, 2008
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    Hi, sorry for the delay.

    The two domains are hosted on different servers with different IP´s. But I already found a solution.

    It is a bit a work around but I just redirected the login to a second login script that is located directly on my cpanel server and so the problem is gone now. By clicking a link from my Joomla member area my customers are now directly redirected and logged into their Cpanel accounts.

    Thanks for the help.
     
Loading...

Share This Page