This tool is used to work as ejabberd authentication module.
- Run ./install.sh
- Copy enbin/*.bean files into path/to/ejabberd/ebin/ (such as /opt/local/lib/ejabberd/ebin/ etc)
{host_config,
"xmpp.flirten.lab", [
{auth_method, tnc},
{communities, [
{
"xmpp.flirten.lab", [
{service, "redis"},
{hosts, [{"moleman-flirten", 6379, 1, 1}]},
{retry_timeout, 30000}
]
}
]}
]
}.
OR
{host_config,
"xmpp1.flirten.lab", [
{auth_method, tnc},
{communities, [
{
"xmpp.flirten.lab", [
{service, "memcache"},
{hosts, [{"10.60.1.237", 11211, 1}, {"10.60.1.237", 11210, 1}]},
{retry_timeout, 30000},
{backoff_interval, 30000},
{max_retry_backoff, 1800000}
]
}
]}
]
}.