Skip to main content

CPANEL-42871 - WHM get_domain_info does not return all the domains

Comments

6 comments

  • cPRex Jurassic Moderator
    Hey there! Thanks for letting me know about this issue. I believe this is actually working as intended, and there is just a lack of documentation at Return all domains information about the specific behavior. I've created case CPANEL-42871 to have our team look into that, and I'll be sure to post here as well with an update once I hear something.
    0
  • malex
    Ok, so no way of getting a list of all domains configured on a server without root access or root API token. Nice. API Token are seriously flawed / useless. I guess I will have to push instead of pulling this list of domains... yet another cron to add and yet another time that I have to find a solution / a patch myself. Honestly I'm getting tired of cPanel lately.
    0
  • malex
    I answer to this issue once again because I don't understand the logics behind the token permission... like at all. In my development, I need to install SSL certificates for customers. That include account created by resellers users. So, this time I'm careful, and I'm thinking : if I use a non-acl-all token, cPanel will probably block my API call for the accounts created by the resellers, because it's not owned by root. Except it's not the case... So, I'm not able to list all the domains configured on the servers with a non-acl-all token, the domains created on resellers accounts (or not root owned) are not listed. But, I'm able to do stuff on the accounts created by the resellers using a non-acl-all token. And I'm able to list the domain by iterating on users created by resellers using the
    Since we can easily bypass this "limitation", why not add a flag to allow listing all domains on the get_domain_info ?!
    0
  • cPRex Jurassic Moderator
    That sounds like a good idea to me! I've added a note to the original case I created.
    0
  • rbairwell
    Sounds very similar to my feature request (
    0
  • malex
    Yes, I had the exact same issue for the suspension of resellers account / accounts owned by resellers. I opened a support ticket and from time to time I come back to the ticket hoping for a change. It was a regression because it used to work before, and we had like +500 accounts not suspended because of this... It was a pain in the ass to retrieve the list of accounts that were not suspended (sometime the owner account was already deleted so it was extra hard to find). I was pissed off that day. I ended up creating a hook on the account suspension that suspend the accounts owned by the reseller too. (OK in my use case, maybe not for everyone) Another related issue is that we can't create a session using
    0

Please sign in to leave a comment.