Skip to main content

how to create user, site and DB from WHM plugin without access hash?

Comments

3 comments

  • vanessa
    You cannot call the API without either the access hash or the password. Being able to do so would be considered a huge security vulnerability, considering what the API can do. You may want to consider using a cPanel API2 call instead, which can authenticate using the cPanel user's credentials.
    0
  • KostonConsulting
    If you're already logged in as root, you'll have read access to /root/.accesshash. Just load it out of the file and use it to make the API call Be warned that you should use an appconfig file to make sure your WHM plugin executes as the logged in user so that other users cannot act as root via your plugin.
    0
  • cPanelMichael
    Hello :) I just wanted to note the documentation on AppConfig is found here: cPanel - AppConfig Thank you.
    0

Please sign in to leave a comment.