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 Access: Apply ACL List to Reseller

Discussion in 'General Discussion' started by GatorDrewH, Oct 15, 2008.

  1. GatorDrewH

    GatorDrewH Member
    PartnerNOC

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    I really hate to ask this, since I'm sure its already been discussed.

    I am trying to basically do a whmreq via Perl in order to assign an ACL to a specific reseller.

    I don't mind also just setting the options individually, if that is also possible.
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
  3. GatorDrewH

    GatorDrewH Member
    PartnerNOC

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Not sure why I haven't stumbled across the xml api before.

    Nice job on that guys.
     
  4. GatorDrewH

    GatorDrewH Member
    PartnerNOC

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Is there also a recommended way of adding Account Creation Limits to a reseller via the API?
     
  5. 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
    Chances are if you are using the APIs to create resellers, you are creating many similar resellers with the same account creation limits. You may wish to pre-define these ACLs via the WHM interface then simply use the API to call the ACL by name rather than specify these permissions individually for each reseller.
     
  6. GatorDrewH

    GatorDrewH Member
    PartnerNOC

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Unfortunately I'd need to specify it per reseller.

    Is there a way to do that?
     
  7. 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
    To specify different privileges on a per-reseller basis, you can use setacls XML API call. Rather than assigning a pre-created set of permissions, you can issue the permissions individually.

    http://cpanel.net/plugins/xmlapi/setacls.html
     
  8. GatorDrewH

    GatorDrewH Member
    PartnerNOC

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Right, but it doesn't seem like that can change the account creation limits through there.

    This section:

    Limit the total number of accounts drew1 can create to accounts.

    Limit accounts that drew1 can create by Resource Usage. (Access to packages the user creates is automatically granted unless account creation has been limited to pre-assigned packages below. Access is not automatically granted to system/root created packages unless specifically defined below.)
    Resource Usage Limits
    Resource Max Allowed Overselling Allowed
    Disk Space MB*
    Bandwidth MB*
    *Unlimited is not acceptable here. If you wish to only limit one of these, just set the other limit to a very large number.

    Overselling means that the reseller will be limited by the resources they have actually used instead of the resources they have been allocated.

    Actual refers to the sum of the usage of all the resellers accounts.
    Allocated refers to the sum of the maximum allowed usage for all the resellers accounts.

    Specify which packages drew1 can use for account creation.
    You need to specify the number of accounts that drew1 can create per package below.

    Limit the amount of accounts that drew1 can create per package. (This implies the option above.)
     
    #8 GatorDrewH, Oct 31, 2008
    Last edited: Oct 31, 2008
  9. GatorDrewH

    GatorDrewH Member
    PartnerNOC

    Joined:
    Oct 15, 2008
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Nothing on this? Should I make a ticket?
     
  10. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
    Please open a ticket.

    Thanks
     
  11. jfall123

    jfall123 Well-Known Member

    Joined:
    Oct 31, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Has there ever been a solution to this? I am trying to do the same thing. I'm interfacing with WHM through modernbill and need Reseller accounts created with the option "Limit the amount of accounts that user can create per package." because if the option isn't set than the user will see all other global packages on the server (not good when its a shared/reseller mixed server).

    I can do the disk space limiting and overselling options through modernbill but there doesn't seem to be any options for limiting the amount of accounts a user can create per package. Basically, I just need a way to create resellers through the API who can only see their own packages, and not global packages.
     
    #11 jfall123, Nov 22, 2008
    Last edited: Nov 22, 2008
  12. 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
    Is your inquiry about the capabilities of Parallels Plesk Billing (formerly: Modernbill) or with the actual cPanel/WHM APIs you can use for constructing your own custom billing solution?

    I generally recommend inquiries about specific billing applications be addressed to the manufacturer of the application you are inquiring about.
     
  13. DaveUsedToWorkHere

    DaveUsedToWorkHere Well-Known Member

    Joined:
    Dec 28, 2001
    Messages:
    689
    Likes Received:
    1
    Trophy Points:
    18
    Right now, the setacls XML API call does not provide access to the reseller limits options, only to the reseller ACL list.

    You could POST the variables to:

    https://IP:2087/scripts2/editressv

    if you wish to automate the process. Take a look at the source in the Edit Privileges/Nameservers for the specific variable names that are sent to editressv.

    Let me know if you have any questions.
     
Loading...

Share This Page