Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    700

    Default XML/JSON API Function to retreive the 'Remote Access Key'

    I would like to request a API function to be added to the WHM that would allow the 'Remote Access Key' to be fetched.

    I am developing a app and rather than forcing the user to copy/paste in the WHM access key i want to give them the ability to just type in there user/pass the first time around and for the app to login, grab the hash, and store it for future use.

  2. #2
    Member bvierra's Avatar
    Join Date
    Jul 2006
    Location
    Southern California
    Posts
    55

    Default

    While there is no way to get it through API you could easily use ssh and cat ~/.accesshash

  3. #3
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    700

    Default

    Ya.. but that would require my app to support SSH. Alot more work to implement, less stable, and more of a security risk when passing the root password.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge rking's Avatar
    Join Date
    Aug 2005
    Posts
    188

    Default

    If you're worried about security, you could setup SSH keys and then your app wouldn't have to store the root password at all. If you're talking about a root level app that needs the root access hash, you'd have to authenticate for the API call somehow anyways (i.e. you either need the hash already or you have to pass the root password).

    If you're looking for a reseller's access hash and are having resellers authenticate with their username and password, you could FTP to their account and grab their .accesshash through FTP. Probably wouldn't be as complex as supporting SSH in your app.

    But if you're going to be allowing resellers to store their hash, why not store their password instead? For security, you're going to have to encrypt either of them anyways and afaik there's little you can do with a password that you can't do with the hash.

  5. #5
    cPanel Partner NOC This forum account has been confirmed by cPanel staff to represent a vendor.cPanel Partner NOC Badge
    Join Date
    Nov 2001
    Location
    San Clemente, Ca
    Posts
    700

    Default

    Bumpity Bump

    Will there be support for this?

Similar Threads & Tags
Similar threads

  1. is XML/JSON-API available only to WHM accounts?
    By eschminke in forum cPanel Developers
    Replies: 6
    Last Post: 12-02-2011, 04:35 PM
  2. DNS Setup/edit domain forwarding via XML/JSON API
    By abrakadabra in forum Feature Requests for cPanel/WHM
    Replies: 2
    Last Post: 09-02-2011, 07:24 AM
  3. XML or JSON API?
    By Azavia in forum cPanel Developers
    Replies: 3
    Last Post: 05-21-2010, 01:16 PM
  4. XML/JSON API & Session Creation using Access Hash
    By jdelsman in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 02-08-2010, 05:15 PM
  5. curl, cPanel API and server remote access key question
    By sharmaine001 in forum Security
    Replies: 1
    Last Post: 01-25-2010, 02:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube