ejabberd - Comments for "Search &amp;amp; web-register" https://www.ejabberd.im/node/3745 en Проблема решена. Вы были https://www.ejabberd.im/node/3745#comment-54970 <p>Проблема решена. Вы были правы, видимо бинарник был криво скомпилирован. Спасибо.</p> Mon, 30 Nov 2009 17:59:36 +0000 godson comment 54970 at https://www.ejabberd.im P/S/ Кстати при компиляции https://www.ejabberd.im/node/3745#comment-54941 <blockquote><p>P/S/ Кстати при компиляции обоих скриптов было предупреждение: Warning: behaviour gen_mod undefined</p></blockquote> <p>Если были такие предупреждения, значит, не всё было правильно... :) Единственные предупреждения, которые легитимно могут появиться, это что какие-нибудь модули "deprecated" (обычно это относится к regex'ам). Поэтому, если этот модуль нужен, надо добиться его корректной компиляции.</p> Wed, 25 Nov 2009 22:48:34 +0000 mikekaganski comment 54941 at https://www.ejabberd.im Компилил так: закинул https://www.ejabberd.im/node/3745#comment-54936 <p>Компилил так: закинул исходники к остальным сорцам дистрибутива сервера и сказал ./configure ... потом по-моему еще make говорил, точно не помню, и после этого взял там соделанные бинарники, закинул их к остальным... так что так много чего при компиляции происходило, всего и не скопируешь однако...</p> Wed, 25 Nov 2009 10:41:03 +0000 godson comment 54936 at https://www.ejabberd.im Насчёт компиляции https://www.ejabberd.im/node/3745#comment-54929 <p>Как компилируете, какие сообщения выдаются (полностью)?</p> Tue, 24 Nov 2009 03:20:50 +0000 mikekaganski comment 54929 at https://www.ejabberd.im ... я всё еще надеюсь на ваш https://www.ejabberd.im/node/3745#comment-54915 <p>... я всё еще надеюсь на ваш ответ...</p> Wed, 18 Nov 2009 18:00:58 +0000 godson comment 54915 at https://www.ejabberd.im Я все еще надеюсь на ваш https://www.ejabberd.im/node/3745#comment-54897 <p>Я все еще надеюсь на ваш ответ. Поиск для меня не столь важен, более-менее работает, и ладно. А вот с регистрацией я встрял серъезно. Дело в том, что на мем сервере будут общаться люди, большинство из которых будут пользоваться мобильными клиентами. Но из мобильных клиентов только бомбус умеет региться на сервере... бомбус конечно хорошая прога, но для обычного пользователя она слишком наворочена. Вот я и хочу сделать возможность регистрации из браузера, чтобы потом использовать например Jimm aspro. Может бы у вас будут какие-то другие идеи по этому поводу? Например мне тут пришла мысль попробовать найти какого-нибудь бота, который умеет регить, и что-нибудь смастерить из него... Но это не так просто, ведь надо будет продумать защиту от массовых рег...</p> Mon, 16 Nov 2009 02:47:25 +0000 godson comment 54897 at https://www.ejabberd.im Поиск интересно работает, https://www.ejabberd.im/node/3745#comment-54893 <p>Поиск интересно работает, звездочка отрабатывает исключительно в конце слова. Например, чтобы найти Имя Сергей, он нормально отрабатывает запрос "Сер*", однако ничего не находит по запросу "*ргей"... % вообще не помогает...</p> <p>Насчет mod_register_web... вроде как научился компилить erl-шки... нашел в <noindex><a href="https://svn.process-one.net/ejabberd-modules/mod_register_web" title="https://svn.process-one.net/ejabberd-modules/mod_register_web" rel="nofollow" >https://svn.process-one.net/ejabberd-modules/mod_register_web</a></noindex> ДВА скрипта. Однако с одним из них (trunk) сервак вообще не запускается, а с другим (branches) работает странновато, когда захожу по адресу <noindex><a href="https://blessing.ru:5281/register" title="https://blessing.ru:5281/register" rel="nofollow" >https://blessing.ru:5281/register</a></noindex> вижу страницу: </p> <p> Jabber Account Registration</p> <p>Register a Jabber account<br /> Сменить пароль<br /> Unregister a Jabber account</p> <p>Это три ссылки, однако по любой из них попадаешь на "404 Not Found"... почему так?</p> <p>P/S/ Кстати при компиляции обоих скриптов было предупреждение: Warning: behaviour gen_mod undefined</p> Fri, 13 Nov 2009 18:42:47 +0000 godson comment 54893 at https://www.ejabberd.im Насчёт частичного поиска https://www.ejabberd.im/node/3745#comment-54890 <p>Насчёт частичного поиска vcard в реляционных БД не знаю, у меня всё в LDAP, там автоматически ищется по части слова, даже слишком. Но можно попробовать SQL wildcards - знак "%" значит то же, что обычно значит "*", а знак "_" - то же, что обычно знак "?". Может быть, с этими подстановками заработает?</p> <p>PS. Вообще-то в исходном коде вроде бы есть проверка на то, завершается ли строка звёздочкой, и в этом случае сам подставляет в конец "%" вместо звезды.</p> Fri, 13 Nov 2009 11:52:34 +0000 mikekaganski comment 54890 at https://www.ejabberd.im Спасибо большое за ваше https://www.ejabberd.im/node/3745#comment-54889 <p>Спасибо большое за ваше терпение. Мне действительно нужно еще многому учиться... Конфиг в утф-8, уже есть похожий опыт... Поиск нашел, задал хост. Только вот он не хочет искать по фрагменту слова, а только по полному слову. Можно этого избежать как-нибудь?</p> Fri, 13 Nov 2009 09:45:33 +0000 godson comment 54889 at https://www.ejabberd.im Ну вот, а должен быть https://www.ejabberd.im/node/3745#comment-54887 <p>Ну вот, а должен быть vjud.blessing.ru, вы ж не определили параметр host (см. <noindex><a href="http://www.process-one.net/en/ejabberd/guide_en" rel="nofollow" >ejabberd 2.0.5 Installation and Operation Guide</a></noindex>, раздел 3.3.23 mod_vcard).<br /> Теперь ещё о Вашем конфиге. Я думаю, ejabberd.cfg имеет кодировку UTF8? Иначе кириллица работать не будет. И printf'овские escape-последовательности тоже не будут работать в erlang, эквивалентом \n будет ~n.<br /> Далее, к пункту о компиляции erl.<br /> Вариант 1:</p> <div class="codeblock"><code>cd /path/to/module/<br />erl<br />c(module-name-without-extension).<br />q().</code></div> <p>Вариант 2:</p> <div class="codeblock"><code>cd /path/to/module/<br />erlc [-I /additional/include/path/] module-name</code></div> <p>После этого в этой папке должон лежать файл beam.<br /> И ещё. Для пущей читабельности конфига стоило его выводить командой типа<br /> <code>cat /path/to/ejabberd.cfg | egrep -v &#039;(^[[:space:]]*$)|(^[[:space:]]*%)&#039;</code></p> Fri, 13 Nov 2009 07:57:13 +0000 mikekaganski comment 54887 at https://www.ejabberd.im Клиент квип инфиум. 5222 https://www.ejabberd.im/node/3745#comment-54886 <p>Клиент квип инфиум. 5222 TLS<br /> Поисковый адрес search.blessing.ru</p> Fri, 13 Nov 2009 07:39:01 +0000 godson comment 54886 at https://www.ejabberd.im Что за клиент, какие его https://www.ejabberd.im/node/3745#comment-54885 <p>Что за клиент, какие его настройки?</p> Fri, 13 Nov 2009 06:55:59 +0000 mikekaganski comment 54885 at https://www.ejabberd.im Да, похоже это всё работает. https://www.ejabberd.im/node/3745#comment-54884 <p>Да, похоже это всё работает. Добавил в ростер юзера, перезашел, он никуда не делся...</p> Fri, 13 Nov 2009 05:58:07 +0000 godson comment 54884 at https://www.ejabberd.im Кроме поиска, остальное https://www.ejabberd.im/node/3745#comment-54883 <p>Кроме поиска, остальное работает? В БД юзеры, ростеры и т.д. складываются?</p> Fri, 13 Nov 2009 03:24:10 +0000 mikekaganski comment 54883 at https://www.ejabberd.im Прошу прощения. Действительно https://www.ejabberd.im/node/3745#comment-54882 <p>Прошу прощения. Действительно следовало самому догадаться. Вот мой конфиг:</p> <p>%%%<br /> %%% ejabberd configuration file<br /> %%%<br /> %%%'</p> <p>%%% The parameters used in this configuration file are explained in more detail<br /> %%% in the ejabberd Installation and Operation Guide.<br /> %%% Please consult the Guide in case of doubts, it is included in<br /> %%% your copy of ejabberd, and is also available online at<br /> %%% <noindex><a href="http://www.process-one.net/en/ejabberd/docs/" title="http://www.process-one.net/en/ejabberd/docs/" rel="nofollow" >http://www.process-one.net/en/ejabberd/docs/</a></noindex></p> <p>%%% This configuration file contains Erlang terms.<br /> %%% In case you want to understand the syntax, here are the concepts:<br /> %%%<br /> %%% - The character to comment a line is %<br /> %%%<br /> %%% - Each term ends in a dot, for example:<br /> %%% override_global.<br /> %%%<br /> %%% - A tuple has a fixed definition, its elements are<br /> %%% enclosed in {}, and separated with commas:<br /> %%% {loglevel, 4}.<br /> %%%<br /> %%% - A list can have as many elements as you want,<br /> %%% and is enclosed in [], for example:<br /> %%% [http_poll, web_admin, tls]<br /> %%%<br /> %%% - A keyword of ejabberd is a word in lowercase.<br /> %%% The strings are enclosed in "" and can have spaces, dots...<br /> %%% {language, "en"}.<br /> %%% {ldap_rootdn, "dc=example,dc=com"}.<br /> %%%<br /> %%% - This term includes a tuple, a keyword, a list and two strings:<br /> %%% {hosts, ["jabber.example.net", "im.example.com"]}.<br /> %%%</p> <p>%%%. =======================<br /> %%%' OVERRIDE STORED OPTIONS</p> <p>%%<br /> %% Override the old values stored in the database.<br /> %%</p> <p>%%<br /> %% Override global options (shared by all ejabberd nodes in a cluster).<br /> %%<br /> %%override_global.</p> <p>%%<br /> %% Override local options (specific for this particular ejabberd node).<br /> %%<br /> %%override_local.</p> <p>%%<br /> %% Remove the Access Control Lists before new ones are added.<br /> %%<br /> %%override_acls.</p> <p>%%%. =========<br /> %%%' DEBUGGING</p> <p>%%<br /> %% loglevel: Verbosity of log files generated by ejabberd.<br /> %% 0: No ejabberd log at all (not recommended)<br /> %% 1: Critical<br /> %% 2: Error<br /> %% 3: Warning<br /> %% 4: Info<br /> %% 5: Debug<br /> %%<br /> {loglevel, 4}.</p> <p>%%<br /> %% watchdog_admins: Only useful for developers: if an ejabberd process<br /> %% consumes a lot of memory, send live notifications to these XMPP<br /> %% accounts.<br /> %%<br /> %%{watchdog_admins, ["serg@blessing.ru"]}.</p> <p>%%%. ================<br /> %%%' SERVED HOSTNAMES</p> <p>%%<br /> %% hosts: Domains served by ejabberd.<br /> %% You can define one or several, for example:<br /> %% {hosts, ["example.net", "example.com", "blessing.ru"]}.<br /> %%<br /> {hosts, ["blessing.ru"]}.</p> <p>%%<br /> %% route_subdomains: Delegate subdomains to other XMPP server.<br /> %% For example, if this ejabberd serves blessing.ru and you want<br /> %% to allow communication with a XMPP server called im.blessing.ru.<br /> %%<br /> %%{route_subdomains, s2s}.</p> <p>%%%. ===============<br /> %%%' LISTENING PORTS</p> <p>%%<br /> %% listen: Which ports will ejabberd listen, which service handles it<br /> %% and what options to start it with.<br /> %%<br /> {listen,<br /> [</p> <p> {5222, ejabberd_c2s, [</p> <p> %%<br /> %% If TLS is compiled and you installed a SSL<br /> %% certificate, put the correct path to the<br /> %% file and uncomment this line:<br /> %%<br /> %% {certfile, "/etc/ejabberd/ssl.pem"}, starttls,</p> <p> {access, c2s},<br /> {shaper, c2s_shaper},<br /> {max_stanza_size, 65536}<br /> ]},</p> <p> %%<br /> %% To enable the old SSL connection method in port 5223:<br /> %%<br /> {5223, ejabberd_c2s, [<br /> {access, c2s},<br /> {shaper, c2s_shaper},<br /> {certfile, "/etc/ejabberd/ssl.pem"}, tls,<br /> {max_stanza_size, 65536}<br /> ]},</p> <p> {5269, ejabberd_s2s_in, [<br /> {shaper, s2s_shaper},<br /> {max_stanza_size, 131072}<br /> ]},</p> <p> %%<br /> %% ejabberd_service: Interact with external components (transports...)<br /> %%<br /> {8888, ejabberd_service, [<br /> {access, all},<br /> {shaper_rule, fast},<br /> {ip, {127, 0, 0, 1}},<br /> {hosts, ["icq.blessing.ru", "sms.blessing.ru"],<br /> [{password, "P@ROL"}]<br /> }<br /> ]},</p> <p> %%<br /> %% ejabberd_stun: Handles STUN Binding requests<br /> %%<br /> %%{{3478, udp}, ejabberd_stun, []},</p> <p> {5280, ejabberd_http, [<br /> %%{request_handlers,<br /> %% [<br /> %% {["pub", "archive"], mod_http_fileserver}<br /> %% ]},<br /> captcha,<br /> http_bind,<br /> http_poll,<br /> web_admin<br /> ]}</p> <p> ]}.</p> <p>%%<br /> %% s2s_use_starttls: Enable STARTTLS + Dialback for S2S connections.<br /> %% Allowed values are: true or false.<br /> %% You must specify a certificate file.<br /> %%<br /> %%{s2s_use_starttls, true}.</p> <p>%%<br /> %% s2s_certfile: Specify a certificate file.<br /> %%<br /> %%{s2s_certfile, "/path/to/ssl.pem"}.</p> <p>%%<br /> %% domain_certfile: Specify a different certificate for each served hostname.<br /> %%<br /> %%{domain_certfile, "blessing.ru", "/path/to/example_org.pem"}.<br /> %%{domain_certfile, "example.com", "/path/to/example_com.pem"}.</p> <p>%%<br /> %% S2S whitelist or blacklist<br /> %%<br /> %% Default s2s policy for undefined hosts.<br /> %%<br /> %%{s2s_default_policy, allow}.</p> <p>%%<br /> %% Allow or deny communication with specific servers.<br /> %%<br /> %%{{s2s_host, "goodhost.org"}, allow}.<br /> %%{{s2s_host, "badhost.org"}, deny}.</p> <p>%%<br /> %% Outgoing S2S options<br /> %%<br /> %% Preferred address families (which to try first) and connect timeout<br /> %% in milliseconds.<br /> %%<br /> %%{outgoing_s2s_options, [ipv4, ipv6], 10000}.</p> <p>%%%. ==============<br /> %%%' AUTHENTICATION</p> <p>%%<br /> %% auth_method: Method used to authenticate the users.<br /> %% The default method is the internal.<br /> %% If you want to use a different method,<br /> %% comment this line and enable the correct ones.<br /> %%<br /> %%{auth_method, internal}.</p> <p>%%<br /> %% Authentication using external script<br /> %% Make sure the script is executable by ejabberd.<br /> %%<br /> %%{auth_method, external}.<br /> %%{extauth_program, "/path/to/authentication/script"}.</p> <p>%%<br /> %% Authentication using ODBC<br /> %% Remember to setup a database in the next section.<br /> %%<br /> {auth_method, odbc}.</p> <p>%%<br /> %% Authentication using PAM<br /> %%<br /> %%{auth_method, pam}.<br /> %%{pam_service, "pamservicename"}.</p> <p>%%<br /> %% Authentication using LDAP<br /> %%<br /> %%{auth_method, ldap}.<br /> %%<br /> %% List of LDAP servers:<br /> %%{ldap_servers, ["localhost"]}.<br /> %%<br /> %% Encryption of connection to LDAP servers:<br /> %%{ldap_encrypt, none}.<br /> %%{ldap_encrypt, tls}.<br /> %%<br /> %% Port connect to LDAP servers:<br /> %%{ldap_port, 389}.<br /> %%{ldap_port, 636}.<br /> %%<br /> %% LDAP manager:<br /> %%{ldap_rootdn, "dc=blessing,dc=ru"}.<br /> %%<br /> %% Password to LDAP manager:<br /> %%{ldap_password, "******"}.<br /> %%<br /> %% Search base of LDAP directory:<br /> %%{ldap_base, "dc=blessing,dc=ru"}.<br /> %%<br /> %% LDAP attribute that holds user ID:<br /> %%{ldap_uids, [{"mail", "%u@mail.blessing.ru"}]}.<br /> %%<br /> %% LDAP filter:<br /> %%{ldap_filter, "(objectClass=shadowAccount)"}.</p> <p>%%<br /> %% Anonymous login support:<br /> %% auth_method: anonymous<br /> %% anonymous_protocol: sasl_anon | login_anon | both<br /> %% allow_multiple_connections: true | false<br /> %%<br /> %%{host_config, "public.blessing.ru", [{auth_method, anonymous},<br /> %% {allow_multiple_connections, false},<br /> %% {anonymous_protocol, sasl_anon}]}.<br /> %%<br /> %% To use both anonymous and internal authentication:<br /> %%<br /> %%{host_config, "public.blessing.ru", [{auth_method, [internal, anonymous]}]}.</p> <p>%%%. ==============<br /> %%%' DATABASE SETUP</p> <p>%% ejabberd uses by default the internal Mnesia database,<br /> %% so you can avoid this section.<br /> %% This section provides configuration examples in case<br /> %% you want to use other database backends.<br /> %% Please consult the ejabberd Guide for details about database creation.</p> <p>%%<br /> %% MySQL server:<br /> %%<br /> {odbc_server, {mysql, "localhost", "ejabb", "Ejabberd", "*******"}}.<br /> %%<br /> %% If you want to specify the port:<br /> %%{odbc_server, {mysql, "server", 1234, "database", "username", "password"}}.</p> <p>%%<br /> %% PostgreSQL server:<br /> %%<br /> %%{odbc_server, {pgsql, "server", "database", "username", "password"}}.<br /> %%<br /> %% If you want to specify the port:<br /> %%{odbc_server, {pgsql, "server", 1234, "database", "username", "password"}}.<br /> %%<br /> %% If you use PostgreSQL, have a large database, and need a<br /> %% faster but inexact replacement for "select count(*) from users"<br /> %%<br /> %%{pgsql_users_number_estimate, true}.</p> <p>%%<br /> %% ODBC compatible or MSSQL server:<br /> %%<br /> %%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.</p> <p>%%<br /> %% Number of connections to open to the database for each virtual host<br /> %%<br /> %%{odbc_pool_size, 10}.</p> <p>%%<br /> %% Interval to make a dummy SQL request to keep alive the connections<br /> %% to the database. Specify in seconds: for example 28800 means 8 hours<br /> %%<br /> %%{odbc_keepalive_interval, undefined}.</p> <p>%%%. ===============<br /> %%%' TRAFFIC SHAPERS</p> <p>%%<br /> %% The "normal" shaper limits traffic speed to 1.000 B/s<br /> %%<br /> {shaper, normal, {maxrate, 1000}}.</p> <p>%%<br /> %% The "fast" shaper limits traffic speed to 50.000 B/s<br /> %%<br /> {shaper, fast, {maxrate, 50000}}.</p> <p>%%%. ====================<br /> %%%' ACCESS CONTROL LISTS</p> <p>%%<br /> %% The 'admin' ACL grants administrative privileges to XMPP accounts.<br /> %% You can put as many accounts as you want.<br /> %%<br /> {acl, admin, {user, "admin", "blessing.ru"}}.<br /> {acl, admin, {user, "sword", "blessing.ru"}}.</p> <p>%%<br /> %% Blocked users<br /> %%<br /> %%{acl, blocked, {user, "baduser", "blessing.ru"}}.<br /> %%{acl, blocked, {user, "test"}}.</p> <p>%%<br /> %% Local users: don't modify this line.<br /> %%<br /> {acl, local, {user_regexp, ""}}.</p> <p>%%<br /> %% More examples of ACLs<br /> %%<br /> %%{acl, jabberorg, {server, "jabber.org"}}.<br /> %%{acl, aleksey, {user, "aleksey", "jabber.ru"}}.<br /> %%{acl, test, {user_regexp, "^test"}}.<br /> %%{acl, test, {user_glob, "test*"}}.</p> <p>%%<br /> %% Define specific ACLs in a virtual host.<br /> %%<br /> %%{host_config, "localhost",<br /> %% [<br /> %% {acl, admin, {user, "bob-local", "localhost"}}<br /> %% ]<br /> %%}.</p> <p>%%%. ============<br /> %%%' ACCESS RULES</p> <p>%% Maximum number of simultaneous sessions allowed for a single user:<br /> {access, max_user_sessions, [{10, all}]}.</p> <p>%% Maximum number of offline messages that users can have:<br /> {access, max_user_offline_messages, [{5000, admin}, {100, all}]}. </p> <p>%% This rule allows access only for local users:<br /> {access, local, [{allow, local}]}.</p> <p>%% Only non-blocked users can use c2s connections:<br /> {access, c2s, [{deny, blocked},<br /> {allow, all}]}.</p> <p>%% For C2S connections, all users except admins use "normal" shaper<br /> {access, c2s_shaper, [{none, admin},<br /> {normal, all}]}.</p> <p>%% All S2S connections use "fast" shaper<br /> {access, s2s_shaper, [{fast, all}]}.</p> <p>%% Only admins can send announcement messages:<br /> {access, announce, [{allow, admin}]}.</p> <p>%% Only admins can use configuration interface:<br /> {access, configure, [{allow, admin}]}.</p> <p>%% Admins of this server are also admins of MUC service:<br /> {access, muc_admin, [{allow, admin}]}.</p> <p>%% Only accounts of the local ejabberd server can create rooms:<br /> {access, muc_create, [{allow, local}]}.</p> <p>%% All users are allowed to use MUC service:<br /> {access, muc, [{allow, all}]}.</p> <p>%% Only accounts in the local ejabberd server can create Pubsub nodes:<br /> {access, pubsub_createnode, [{allow, local}]}.</p> <p>%% In-band registration allows registration of any possible username.<br /> %% To disable in-band registration, replace 'allow' with 'deny'.<br /> {access, register, [{allow, all}]}.</p> <p>%% By default frequency of account registrations from the same IP<br /> %% is limited to 1 account every 10 minutes. To disable put: infinity<br /> %%{registration_timeout, 600}.</p> <p>%%<br /> %% Define specific Access rules in a virtual host.<br /> %%<br /> %%{host_config, "localhost",<br /> %% [<br /> %% {access, c2s, [{allow, admin}, {deny, all}]},<br /> %% {access, register, [{deny, all}]}<br /> %% ]<br /> %%}.</p> <p>%%%. ================<br /> %%%' DEFAULT LANGUAGE</p> <p>%%<br /> %% language: Default language used for server messages.<br /> %%<br /> {language, "ru"}.</p> <p>%%<br /> %% Set a different default language in a virtual host.<br /> %%<br /> %%{host_config, "localhost",<br /> %% [{language, "ru"}]<br /> %%}.</p> <p>%%%. =======<br /> %%%' CAPTCHA</p> <p>%%<br /> %% Full path to a script that generates the image.<br /> %%<br /> %%{captcha_cmd, "/lib/ejabberd/priv/bin/captcha.sh"}.</p> <p>%%<br /> %% Host part of the URL sent to the user.<br /> %%<br /> %%{captcha_host, "blessing.ru:5280"}.</p> <p>%%%. =======<br /> %%%' MODULES</p> <p>%%<br /> %% Modules enabled in all ejabberd virtual hosts.<br /> %%<br /> {modules,<br /> [<br /> {mod_adhoc, []},<br /> {mod_announce, [{access, announce}]}, % recommends mod_adhoc<br /> {mod_caps, []},<br /> {mod_configure,[]}, % requires mod_adhoc<br /> {mod_disco, []},<br /> %%{mod_echo, [{host, "echo.localhost"}]},<br /> %%{mod_irc, []},<br /> {mod_http_bind, []},<br /> %%{mod_http_fileserver, [<br /> %% {docroot, "/var/www"},<br /> %% {accesslog, "/var/log/ejabberd/access.log"}<br /> %% ]},<br /> {mod_last_odbc, []},<br /> {mod_muc, [<br /> {host, "conference.blessing.ru"},<br /> {access, muc},<br /> {access_create, muc_create},<br /> {access_persistent, muc_create},<br /> {access_admin, muc_admin}<br /> ]},<br /> %%{mod_muc_log,[]},<br /> {mod_offline_odbc, [{access_max_user_messages, max_user_offline_messages}]},<br /> {mod_ping, []},<br /> {mod_privacy_odbc, []},<br /> {mod_private_odbc, []},<br /> %%{mod_proxy65,[]},<br /> {mod_pubsub, [<br /> {access_createnode, pubsub_createnode},<br /> {ignore_pep_from_offline, true},<br /> {last_item_cache, false},<br /> {plugins, ["flat", "hometree", "pep"]} % pep requires mod_caps<br /> ]},<br /> {mod_register, [<br /> %%<br /> %% After successful registration, the user receives<br /> %% a message with this subject and body.<br /> %%<br /> {welcome_message, {"Мир вам! Добро пожаловать на джаббер-чат blessing.ru!",<br /> "Благословенного общения, и да хранит вас Бог!\nАминь :)"}},</p> <p> %%<br /> %% When a user registers, send a notification to<br /> %% these XMPP accounts.<br /> %%<br /> {registration_watchers, ["admin@blessing.ru"]},</p> <p> {access, register}<br /> ]},<br /> {mod_roster_odbc, []},<br /> %%{mod_service_log,[]},<br /> {mod_shared_roster,[]},<br /> {mod_stats, []},<br /> {mod_time, []},<br /> {mod_vcard_odbc, [{search, true},{matches, infinity},{allow_return_all, true}]},<br /> {mod_version, []}<br /> ]}.</p> <p>%%<br /> %% Enable modules with custom options in a specific virtual host<br /> %%<br /> %%{host_config, "localhost",<br /> %% [{{add, modules},<br /> %% [<br /> %% {mod_echo, [{host, "mirror.localhost"}]}<br /> %% ]<br /> %% }<br /> %% ]}.</p> <p>%%%.<br /> %%%'</p> <p>%%% $Id: ejabberd.cfg.example 2683 2009-10-19 17:02:37Z badlop $</p> <p>%%% Local Variables:<br /> %%% mode: erlang<br /> %%% End:<br /> %%% vim: set filetype=erlang tabstop=8 foldmarker=%%%',%%%. foldmethod=marker:</p> Fri, 13 Nov 2009 03:08:54 +0000 godson comment 54882 at https://www.ejabberd.im