Remote login for cpanel accounts

easyali

Registered
Apr 30, 2012
4
0
51
cPanel Access Level
Root Administrator
Hello,
I would like to enable my users (who are already authenticated in my application) to automatically log into their Cpanel accounts through API.
If I know the password of the specific account, then it will be no problem. However, I do not think that I can retrieve the password of any account? If I can, please tell me which API function to use? If not, what can I do to achive what I want?

Thanks

Elcin
 

easyali

Registered
Apr 30, 2012
4
0
51
cPanel Access Level
Root Administrator
I was wondering if it is possible to log a user in.. without the password prompt.

following is the possible scenario:
1. User visits our website and logs in (using his username and password, it's not

same as the cpanel login)
2. now, user has more then one account on our server and I want to log them in..

without the the password prompt..

Now, I don't know what their current password is for cpanel... they might have

changed it, since they signed up.

Is this possible?


The reason behind asking for this function is that we sell domain names as well

as web hosting and we want to be able to allow users to login to cpanel by just

one click? i.e. a url that can be use once to login to cpanel. User will be

already logged into our website, before we give them this url, hence there is no

need to authenticate the user twice.

Elcin
 

bhd

Well-Known Member
Sep 20, 2003
149
2
166
JNB ZA
cPanel Access Level
Root Administrator
Passwords are stored in /etc/passwd as MD5. The actual password is not stored on the server. You would need the user to enter his password, MD5 it then compare the MD5 to /etc/passwd.