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.

Automatic cPanel login

Discussion in 'cPanel Developers' started by sirbrent, Aug 13, 2010.

  1. sirbrent

    sirbrent Well-Known Member

    Joined:
    Sep 30, 2008
    Messages:
    98
    Likes Received:
    1
    Trophy Points:
    8
    I am looking to integrate cPanel more directly into my existing members area, I desire that either:
    1) users be logged-in to their cpanel as part of the login process of the members area (so they can click links to cpanel pages without having to sign in again and remember additonal login credentials)
    2) enable automatic login to cpanel account at the time when links are clicked to cpanel page are clicked.

    I have read about various ways this can be done but they are complex and sometimes show users the login credentials in the URL (which I dont think is acceptable).

    Does anyone have a straight-forward implementation of this? I would greatly appreciate it. Although I believe this is an important feature that WHM should strongly consider adding to its feature list.
     
  2. cPanelDavidN

    cPanelDavidN Integration Developer
    Staff Member

    Joined:
    Dec 17, 2009
    Messages:
    571
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Hi Sirbrent,

    I don't believe that there's a "straight-forward" implementation. I'm sure something could be rigged, however the two ways that pop into my head are involved:

    A) a storage mechanism for the cPanel credentials and some JavaScript polling over SSL to retrieve the credentials, then make a browser login request (a redirection, really), all from a icon click. Not straight forward as there is huge security implications here.

    B) If the two places live on the same OS, or if there's a root trust between the two, you could probably do some heavy scripting that would determine some sort of enduser trust. Again, not straight forward as it would be a fair amount of work, complex, and might be hard to maintain.

    So...I'm not entirely straight on the details, but in a future release of cPanel/WHM (looks like version 11.32 for now), we hope to have our Pluggable Authentication solution in place. It's a complete refactor of our authentication code. I believe that this new code base would allow for integration with other authentication mechanism, like LDAP. If one could use a centralized authentication server, it would a much cleaner way to go for your needs. Alas, this code won't be available for several months and the details have been few.

    Best of Luck,
    -DavidN
     
  3. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    is it possible to post to your login page from an external login form?

    bumping thread.
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    You may use POST to submit the login form; I would consider the following example: Sample Branded Login Page
     
  5. B12Org

    B12Org Well-Known Member

    Joined:
    Jul 15, 2003
    Messages:
    692
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Seattle Washington
    cPanel Access Level:
    Root Administrator
    that is perfect, thank you sir.
     
Loading...

Share This Page