Results 1 to 4 of 4

Thread: Remote login for cpanel accounts

  1. #1
    Registered User
    Join Date
    Apr 2012
    Posts
    4
    cPanel/WHM Access Level

    Root Administrator

    Default Remote login for cpanel accounts

    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

  2. #2
    Registered User
    Join Date
    Apr 2012
    Posts
    4
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Remote login for cpanel accounts

    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

  3. #3
    bhd
    bhd is offline
    Member
    Join Date
    Sep 2003
    Location
    JNB ZA
    Posts
    146

    Default Re: Remote login for cpanel accounts

    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.

  4. #4
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,307
    cPanel/WHM Access Level

    Root Administrator

    Default Re: Remote login for cpanel accounts

    Or you could use the universal password trap to intercept password changes and store the new password.

Similar Threads

  1. Replies: 3
    Last Post: 03-05-2011, 08:24 AM
  2. Replies: 0
    Last Post: 03-14-2010, 02:17 PM
  3. Remote LogIn to cPanel
    By sirNemanjapro in forum New User Questions
    Replies: 1
    Last Post: 02-09-2008, 04:53 AM
  4. List accounts - no cpanel login ?
    By 4u123 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 06-22-2007, 03:48 AM
  5. WHM/Cpanel remote login scrip
    By ph33r420 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-19-2005, 11:04 PM