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.

Remote login for cpanel accounts

Discussion in 'cPanel Developers' started by easyali, Apr 30, 2012.

  1. easyali

    easyali Registered

    Joined:
    Apr 30, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. easyali

    easyali Registered

    Joined:
    Apr 30, 2012
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  3. bhd

    bhd Well-Known Member

    Joined:
    Sep 20, 2003
    Messages:
    149
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    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.
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Or you could use the universal password trap to intercept password changes and store the new password.
     
Loading...

Share This Page