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.

Single Sign-on for Cpanel, fully integrated??

Discussion in 'General Discussion' started by tkoweb, Sep 9, 2003.

  1. tkoweb

    tkoweb Active Member

    Joined:
    Dec 26, 2002
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Has anyone implemented a single sign-on solution for CPANEL? I'd love to get your comments before I reinvent the wheel.

    I want the control panel to feel completely integrated with my site, even if the single sign-on isn't possible. This means getting the menu into a php include, and content area into it's own include, and display within my existing website.

    This would also aid in theming, as everyone's more familiar with regular html/php than they are with the cryptic overengineered whm/cpanel method.

    Has anyone done this? Examples please!

    cPanel.net Support Ticket Number:
     
  2. mickeymouse

    mickeymouse Well-Known Member

    Joined:
    Sep 16, 2003
    Messages:
    389
    Likes Received:
    0
    Trophy Points:
    16
    Dear tkoweb,

    I found a couple of links which explains Integrating with cPanel on your website.
    http://tech.hostforadollar.com/modulos/articulos.php?task=imprim

    cPanel.net Support Ticket Number:
     
  3. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Re: RE: Single Sign-on for Cpanel, fully integrated??

    I think that's only part of the url, I couldn't find the article you mean on that site, perhaps an edit?

    cPanel.net Support Ticket Number:
     
  4. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
  5. tkoweb

    tkoweb Active Member

    Joined:
    Dec 26, 2002
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Just FYI

    I learned that cpanel uses their own version of include, <cpanel include> that helped me integrate much better. Simply leaving out all theme related data, I let the customized theme format the option links themselves, and let cpanel includes take care of the rest (included the header, sidebar, advertisements, footer, etc into theme page).

    To accomplish this you have to either make a symlink to your home directory or refer all includes to /home/user/www/etcetc.

    As for signle sign on, I haven't found any good pre-made solutions, so I am developing one myself with php/mysql, and hope to offer to others in the same situation when I am finished.

    cPanel.net Support Ticket Number:
     
  6. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    Sounds good
    I'll grant you that single sign-on in the cpanel context isn't that easy, since you basically have four different security contexts(web, webmail, whm and cpanel, three daemons(httpd, webmaild, cpaneld)
    It will be interesting if you can find a solution to address all that.
    Or did you mean something else entirely? I notice you speak of php/mysql... Why mysql? With single sign-on shouldn't you be using cpanel's multiple password files directly?

    cPanel.net Support Ticket Number:
     
  7. pirania1

    pirania1 Well-Known Member

    Joined:
    May 10, 2003
    Messages:
    126
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Miami, FL
    Next week, I will be offering fully customisable central login for Modernbill users.
    If you use modernbill, it will go to the server assigned to the customer, and depending on their selection it will go to resellers panel, control panel, webmail or even urchin.
    The script is basically done, I'm just tweaking it to be able to include ensim servers also.
    So if you have one customer that has domains on several servers (cpanel or ensim) - it will be perfect solution for you.

    cPanel.net Support Ticket Number:
     
  8. tkoweb

    tkoweb Active Member

    Joined:
    Dec 26, 2002
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    Yes, this is what I am trying to accomplish.

    I mention mysql because I would rather store user password data in a central location as well, which works in the administration point of view. Single sign-on doesn't work if you continue to maintain multiple passwords!

    It will be additional work, then, to have the scripts maintain synchrony with the actual cpanel/whm password lists but be well worth the effort. Doing this may involve disabling direct access to the individual feature pages or atleast direct password changes within those pages, which is fine by me.

    cPanel.net Support Ticket Number:
     
  9. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    hmm interesting, how will you keep up with the cpanel updates then?

    cPanel.net Support Ticket Number:
     
  10. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Id like to see it introduced into the cpanel accounting module...
    :D

    I was thinking along the lines of incorporating their passwords into a mysql db and then parsing them into a login script from the database, then disabling the :update password" link in their cpanel. That way when they change that sites password, the local databse will always parse the password stored in mysql into the login script.

    The only problem lies in how to actually update the password on the server without doing it manually..... any thoughts on this?
     
  11. myusername

    myusername Well-Known Member
    PartnerNOC

    Joined:
    Mar 6, 2003
    Messages:
    691
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    chown -R us.*yourbase*
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Actually, thinking about it, the passwords would never have to change on the server side, they would be stored locally, and parsed to the script. The only login the user would have to remember is their login to the billing area..

    Once they are in there, the script would (*should*) be able to log them in on the fly since they no longer have the ability to update their password for a particular cpanel.

    Anyone have any thoghts on this idea?
     
Loading...

Share This Page