caibaohua / tnc_ejabberd_auth

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tnc_ejabberd_auth

This tool is used to work as ejabberd authentication module.

Install

  1. Run ./install.sh
  2. Copy enbin/*.bean files into path/to/ejabberd/ebin/ (such as /opt/local/lib/ejabberd/ebin/ etc)

Settings

{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}
				]
			}
		]}
	]
}.

About


Languages

Language:Erlang 99.7%Language:Shell 0.3%