We are having trouble configuring ejabberd for our environment.
I will try to explain the problems we are having
We have a lot of subdomains on our domain eg: 'client1.ourdomain.com', 'client2.ourdomain.com', 'client3.ourdomain.com', ...
We created a virtual hosts called 'ourdomain.com'.
Now we would like to create users like 'john@client1.ourdomain.com', 'john@client2.ourdomain.com', ....
Is it possible to allow the creation of users for subdomains in the 'ourdomain.com' virtual host?
We have already succesfully routed all of our subdomains to the main domain, but can't be able to configure ejabberd correctly for this to work as desired.
Any ideas/tips ?
jurgenr wrote: we would like
we would like to create users like 'john@client1.ourdomain.com', 'john@client2.ourdomain.com'
Put in your ejabberd.cfg
{hosts, ["client1.ourdomain.com", "client2.ourdomain.com"]}.
And configure a client to login to account:
username: john
domain: client1.ourdomain.com
password: whatever you pick when creating the account
You can create accounts in each virtual host, and they are different. For example, another client can login to this other account:
username: john
domain: client2.ourdomain.com
password: whatever you pick when creating the account