A small article on the integration of CMS Joomla (1.5.x. and 1.6.x.) and ejabberd (2.x.x.)
There are a couple of articles on integration, but they are relevant only for the old version of Joomla.
The process is fairly simple and fairly fast.
')
1) Install Joomla (I think it is not necessary to explain how (:);
2) Install ejabberd using points 5 and 6 of
this mana ;
3) Download the
ejabberd4joomla.googlecode.com/files/plug_ejabberd.tar.gz ;
4) Install as usual plugin to Joomla and enable it;
5) We go, with the help of phpmyadmin or via the console, into the base of our jooml-s and from /ejabberd-2.1.X/src/odbc we import the file mysql.sql (well, or a file under our base);
6) Customize ejabberd.cfg for yourself;
6.1) Find the section
AUTHENTICATION , comment on the point
{auth_method, internal}.
and uncomment the line
{auth_method, odbc};
6.2) Find
DATABASE SETUP , and uncomment the drain to your base (it looks like this for me)
{odbc_server, {mysql, "localhost", " ", " ", ""}}.;
6.3) Forbid registration through the client
%% In-band registration allows registration of any possible username.
%% To disable in-band registration, replace 'allow' with 'deny'.
%% {access, register, [{allow, all}]}.
% None username can be registered via in-band registration:
{access, register, [{deny, all}]}.
7) We register on the site,
go to the site, and only after that we will be able to connect through our favorite client (: