Register new user get duplicated to all virtual hosts on same server

Ejabberd server setup: v2.1.9 on ubuntu 11.10 with mySQL support.
The same ejabberd server has two virtual hosts i.e.
virtual hosts = "abc.com", "xyz.com"

Register a new user 'user_new' to virtual host 'abc.com' using command below or via ejabberd-web:

$ sudo ejabberdctl register user_new abc.com pwd1234

found that 'user_new' is being created on both user_new@abc.com and user_new@xyz.com

How to configure ejabberd so that the above command only add one user_new@abc.com and not to user_new@xyz.com.

cmeng wrote: How to configure

cmeng wrote:

How to configure ejabberd so that the above command only add one user_new@abc.com and not to user_new@xyz.com.

Create a different SQL database for each Jabber domain.

And then in ejabberd.cfg define a different odbc_server for each vhost, using the host_config option. See examples in:
https://git.process-one.net/ejabberd/mainline/blobs/raw/v2.1.10/doc/guid...

Thanks, You are correct. Need

Thanks,

You are correct. Need a seperate mysql database for each supported virtual host.

Syndicate content