Reputation: 5124
I am trying to setup ejabberd as IM solution for my project, which will be mobile app + backend. I am using SQL auth (and SQL store for all modules also), using MSSQL via ODBC. I have some questions I didnt find answered in docs.
users
table in DB, there is only username (without domain part). Can I have two different users [email protected]
and [email protected]
?users
and ejabberd will be OK with it?Upvotes: 0
Views: 192
Reputation: 4120
In users table in DB, there is only username (without domain part). Can I have two different users [email protected] and [email protected] ?
Create a new database for each vhost, and use the host_config option in ejabberd.yml to tell which database to use for each vhost:
https://docs.ejabberd.im/admin/configuration/#database-and-ldap-configuration
Or you can enable the new SQL schema, see https://blog.process-one.net/ejabberd-18-03/
do I need to register users via API, or can I insert rows directly into DB table users and ejabberd will be OK with it?
Both are acceptable. In the second case, there are chances that some task performed at account registration is missing in your server, but I don't remember any module that performs any task at account registration. So, it looks OK.
Upvotes: 1