Login in to WHM or cPanel through link, direct click
Hi,
Sorry for the seemingly easy thread.
Anyone, can you please share a PHP function (and example of application) for a direct loggin through link.
I guess that will imply curl and cpsess.. but I would not want to mess with it on my own and get locked out of my own panel :)
Ultimately, I will use the code for my clients to access their panel directly from our site.
Thank you very mcuh for your help! !!!!
-
Hello :) The following documents should be of help to you: Authenticating API Function Calls Secure Remote Logins Thank you. 0 -
Thank you for this :) Very useful! I have been playing around from the couple of links you provided and playing around with this one : [PHP] [/PHP] it seems to log all right.. the only issue is that after succesful login it show me a page divided in 3 segments, each showing 404 errors (see attachment). I am sure that i am doing somehting worng :) Would you know what I am doing wrong? 0 -
The screenshot you provided indicates you are requesting "/scripts/command" instead of an actual value or WHM option. Thank you. 0 -
OK .. so whwere should it go and how i change the address? As you can see in the code... it does now show anything such as "script/command" yet it takes me there . Thank you so very much :) 0 -
The example you provided was from the API Authentication document. You should follow the instructions on the following document if you have no need to utilize our API: Secure Remote Logins Note that the URL is generated by a Perl script in the example. Thank you. 0
Please sign in to leave a comment.
Comments
5 comments