Multiple authentication methods?

Hi,

I am successfully running ejabberd with LDAP authentication, but now I would like to make it use internal authentication first and then fall back to LDAP if the internal authentication doesn't work. I've tried to activate both in the ejabberd.yml configuration file but if I put both like this, only the first one works:

auth_method: internal

auth_method: ldap
ldap_servers:
    - ...

If I write it like this, ejabberd doesn't start:

auth_method: internal ldap

Is this supported somehow?

Yes, there are two example

Yes, there are two example syntax in the documentation, and one in the example config:

auth_method:
  - internal
  - anonymous

Or:

auth_method: [internal, anonymous]

Yes it's true I missed it. It

Yes it's true I missed it. It works flawlessly now.

Thansk a a lot.

Syndicate content