Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

In Progress [CPANEL-26332] API Tokens and WHM Function list-zones

Discussion in 'cPanel Developers' started by bellwood, Mar 14, 2019 at 2:54 PM.

Tags:
  1. bellwood

    bellwood Member PartnerNOC

    Joined:
    Sep 25, 2012
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    New York
    cPanel Access Level:
    DataCenter Provider
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    46,334
    Likes Received:
    2,039
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @bellwood,

    listzones is controlled with the Manage DNS Records privilege. It's found under the "Initial Privileges" section in WHM >> Manage API Tokens.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    bellwood likes this.
  3. bellwood

    bellwood Member PartnerNOC

    Joined:
    Sep 25, 2012
    Messages:
    18
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    New York
    cPanel Access Level:
    DataCenter Provider
    This is incomplete - I have to allow "Everything - All Features `all`" to get a list of every zone on the server.

    Seems horribly insecure to need a "god" token to simply get a list of zones.
     
    #3 bellwood, Mar 18, 2019 at 12:03 PM
    Last edited: Mar 18, 2019 at 12:12 PM
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    46,334
    Likes Received:
    2,039
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi @bellwood,

    I've reproduced this behavior and opened case CPANEL-24676 to report the issue. I'll monitor this case and update this thread with more information as it becomes available. Note that an additional case (CPANEL-24676) is open to correct this behavior for the listaccts WHM API 1 function. That case is planned for publication with cPanel & WHM version 80.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice