Hi,
I'm having some problems with s2s whitelist. My ejabberd is up and running fine with ldap authentication and MySQL storage.
As long as I keep the configuration like this:
{s2s_default_policy, allow}.
All s2s (TLS enabeled) links are established and working.
But when I change the configuration to use s2s whitelist like this:
{s2s_default_policy, deny}.
{{s2s_host, "host01.com", "host02.org", "host03.net"}, allow}.
I get the following (debug) entries in my ejabberd.log file, and no federated contacts are available :/
Il post my full config file if needed. Any idea on what could be wrong?
I figured it out. It appears
I figured it out.
It appears that s2s_host does not take a list as input.
Changed the config to:
{{s2s_host, "host01.com"}, allow}.
{{s2s_host, "host02.org"}, allow}.
{{s2s_host, "host02.net"}, allow}.
Now it works as expected! :)
sx3 wrote: {{s2s_host,
{{s2s_host, "host01.com", "host02.org", "host03.net"}, allow}.
First of all, you use wrong syntax. Where have you seen that the list is allowed in s2s_host? See theGuide for the description of s2s_host parameter.
To allow only a list of hosts, you need to do it this way:
{s2s_default_policy, deny}.
{{s2s_host, "host01.com"}, allow}.
{{s2s_host, "host02.org"}, allow}.
{{s2s_host, "host03.net"}, allow}.
I didnt rtfm. I assumed the
I didnt rtfm. I assumed the list syntax.
It is working now. Thanks! :)