Single Sign-on for Cpanel, fully integrated??

tkoweb

Active Member
Dec 26, 2002
44
0
156
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:
 

mickeymouse

Well-Known Member
Sep 16, 2003
388
0
166
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:
 

perlchild

Well-Known Member
Sep 1, 2002
279
0
166
Re: RE: Single Sign-on for Cpanel, fully integrated??

Originally posted by mickeymouse
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:
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:
 

tkoweb

Active Member
Dec 26, 2002
44
0
156
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:
 

perlchild

Well-Known Member
Sep 1, 2002
279
0
166
Originally posted by tkoweb
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:
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:
 

pirania1

Well-Known Member
May 10, 2003
126
0
166
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:
 

tkoweb

Active Member
Dec 26, 2002
44
0
156
Originally posted by perlchild
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:
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:
 

perlchild

Well-Known Member
Sep 1, 2002
279
0
166
Originally posted by tkoweb
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:
hmm interesting, how will you keep up with the cpanel updates then?

cPanel.net Support Ticket Number:
 

myusername

Well-Known Member
PartnerNOC
Mar 6, 2003
693
1
168
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?
 

myusername

Well-Known Member
PartnerNOC
Mar 6, 2003
693
1
168
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?