processone / ejabberd-contrib

Growing and curated ejabberd contributions repository - PR or ask to join !
http://ejabberd.im
250 stars 140 forks source link

there is no roster with using ejabberd_auth_hpp on ejabberd 18.09 #266

Closed damirci closed 5 years ago

damirci commented 5 years ago

Hi, I enabled ejabberd_auth_http on ejabberd 18.09 and I configured using SQL for mod_roster and is set default_db : sql but does not save rosters. can I have ejabberd_auth_http and saving rosters together?!

I have to say that all tables are empty and there is no record for archives, online user and ... .

badlop commented 5 years ago

can I have ejabberd_auth_http and saving rosters together?!

Yes, you can use an authentication method (mnesia, sql, external script, whatever), and configure the modules to use whatever storage method you want.

So, you have configured something like this, but nothing is stored in your database?

auth_method: http
default_db: sql
host_config:
  "localhost":
    sql_type: mysql
...

What happens if you:

damirci commented 5 years ago

Thanks, that solved with adding

host_config:
  "localhost":
    sql_type: mysql

to config file.