Это старая версия документа.


Сервер мгновенных сообщений Jabber

Jabber - это популярный протокол мгновенных сообщений, основанный на XMPP, открытом стандарте мгновенных сообщений, и используется многими популярными приложениями. Этот раздел посвящен установке сервера Jabberd 2 для локальной сети. Эта конфигурация может быть также адаптирована для предоставления сервиса сообщений для пользователей через интернет.

Установка

To install jabberd2, in a terminal enter:

sudo apt-get install jabberd2

Настройка

A couple of XML configuration files will be used to configure jabberd2 for Berkeley DB user authentication. This is a very simple form of authentication. However, jabberd2 can be configured to use LDAP, MySQL, PostgreSQL, etc for for user authentication.

First, edit /etc/jabberd2/sm.xml changing:

<id>jabber.example.com</id>

Replace jabber.example.com with the hostname, or other id, of your server.

Now in the <storage> section change the <driver> to:

 <driver>db</driver>

Next, edit /etc/jabberd2/c2s.xml in the <local> section change:

  <id>jabber.example.com</id>

And in the <authreg> section adjust the <module> section to:

  <module>db</module>

Finally, restart jabberd2 to enable the new settings:

sudo /etc/init.d/jabberd2 restart

You should now be able to connect to the server using a Jabber client like Pidgin for example.

The advantage of using Berkeley DB for user data is that after being configured no additional maintenance is required. If you need more control over user accounts and credentials another authentication method is recommended.

Ссылки

  The Jabberd2 Web Site contains more details on configuring Jabberd2.
  For more authentication options see the Jabberd2 Install Guide.
  Also, the Setting Up Jabber Server Ubuntu Wiki page has more information.