Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Option to disallow creation of username that aleady exists on another server

Monarobase shared this idea 8 years ago
Open Discussion

We would like to make sure we can't have the same username twice on our servers. On account's we create with theapi we can manage this but it's not possible when you also have whm reseller accounts on these servers.


There are multiple reasons why we would like this :


1) Makes moving accounts accross servers easier

2) Makes it less dangerous using a single mysql cluster accross multiple servers

3) Makes it easier to provide services like a central login pannel


It shoudln't be that complicated to keep a file or sqlite database with all usernames in sync accross servers that updates everytime a user is created or deleted.

Best Answer
photo

Hey all! I wanted to point out that we added a couple API calls in v58 that are related to this feature request.



Feel free to check out all of the features added in v58 in the release notes. Thanks!

Replies (5)

photo
1

I'm going through some of our historical requests, and I wanted to clarify yours a bit. Can you please provide me a little more detail about the way your are using cPanel? cPanel does a good job of making sure that each user is unique on a per-server basis, and we have plans to add support for a many-to-one remote MySQL server. The part where I'm getting caught up is when you mentioned that you have a way to determine if a root-owned user exists with that username, but not if a reseller-owned user exists.

photo
1

We have multiple servers on which we install accounts to shared hosting customers. Some are resellers and can create their own accounts, others are just plain cPanel accounts.


What I want is the ability for all cpanel user names to be unique, not on a per server basis but for all of our servers.


Here's an example where this would be usefull :


We are in the process of setting up ssd only plans, this requires having some servers with only ssd's and allowing customers to move to a ssd server.


When we create an account we make sure the same user doesn't exist on any of our other servers. However a reseller whm account cannot do this and cpanel only checks on the local server.


So if we setup a reseller on our ssd only server and he creates and account with a user called johnson for his johnsoncars.com website and then another client who's website is johnsonspaintings.com requests to move to the ssd only seever, we can't automaticaly move this user, because the johnson user already exists.


For mysql, if we were to setup a high availability dns cluster and request all of our cPanel servers use it, they would view it as a single mysql server.

At the moment there could be conflicts if two users are the same on two servers and if they both try and create the same database name. Let's say cPanel manages to make it possible for both of these users to have the same database name, then how would server admins know which cPanel account it corresponds to ?


So this feature is that every time a user is created on a server, this username is sent to all other cpanel servers we manage so they know what user's can't be created. This would forbid a reseller creating a username that already exists on another of our servers.

photo
1

Thank you for that clarification. We are gradually moving toward multi-server support, and this would definitely fall into that. I've added the clustering and multiserver tags to this request to help us keep track of it.

photo
2

Thanks. It’s really nice having you here Benny, answering all of our questions and keeping us up to date. I’m glad cPanel has put more importance on the feature request section. :)

photo
1

I'm glad to be here. :)

photo
photo
1

Hey all! I wanted to point out that we added a couple API calls in v58 that are related to this feature request.



Feel free to check out all of the features added in v58 in the release notes. Thanks!

Leave a Comment
 
Attach a file