sirbrent

Well-Known Member
Sep 30, 2008
98
1
58
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.
 

cPanelDavidN

Well-Known Member
Staff member
Dec 17, 2009
571
3
68
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
 

cPanelDon

cPanel Quality Assurance Analyst
Staff member
Nov 5, 2008
2,544
11
268
Houston, Texas, U.S.A.
cPanel Access Level
DataCenter Provider
Twitter