Код: Выделить всё
%%% =======================
%%% OVERRIDE STORED OPTIONS
override_global.
override_local.
override_acls.
%%% =========
%%% DEBUGGING
{loglevel, 5}.
%%% ================
%%% SERVED HOSTNAMES
{hosts, ["localhost", "jabber.domain", "jabber.domain.local"]}.
%%% ===============
%%% LISTENING PORTS
{listen,
[
{5222, ejabberd_c2s, [
%%
%% If TLS is compiled and you installed a SSL
%% certificate, put the correct path to the
%% file and uncomment this line:
%%
%%{certfile, "/path/to/ssl.pem"}, starttls,
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536}
]},
%%
%% To enable the old SSL connection method in port 5223:
%%
%%{5223, ejabberd_c2s, [
%% {access, c2s},
%% {shaper, c2s_shaper},
%% {certfile, "/path/to/ssl.pem"}, tls,
%% {max_stanza_size, 65536}
%% ]},
{5269, ejabberd_s2s_in, [
{shaper, s2s_shaper},
{max_stanza_size, 131072}
]},
%%
%% ejabberd_service: Interact with external components (transports...)
%%
%%{8888, ejabberd_service, [
%% {access, all},
%% {shaper_rule, fast},
%% {ip, {127, 0, 0, 1}},
%% {hosts, ["icq.example.org", "sms.example.org"],
%% [{password, "secret"}]
%% }
%% ]},
{5280, ejabberd_http, [
http_poll,
web_admin
]}
]}.
%%% ==============
%%% AUTHENTICATION
%{auth_method, internal}.
%{host_config, "jabber.ad", [
% {auth_method, ldap},
% {ldap_servers, ["192.168.201.3"]}, % List of LDAP servers
%% {ldap_port, 389},
% {ldap_uidattr, "sAMAccountName"}, % LDAP attribute that holds user ID
% {ldap_base, "ou=Users,dc=domain,dc=local"} % Base of LDAP directory
%% {ldap_rootdn, "cn=ejabberd,dc=domain,dc=local"},
%% {ldap_password, "Nepo34ir@"}
%]}.
{host_config, "jabber.domain.local", [
{auth_method, ldap},
{ldap_servers, ["192.168.201.3"]}, % List of LDAP servers
{ldap_port, 389},
{ldap_uidattr, "sAMAccountName"}, % LDAP attribute that holds user ID
{ldap_group, "CN=Jabber Users,CN=Users,dc=domain,dc=local"},
{ldap_base, "dc=domain,dc=local"}, % Base of LDAP directory
{ldap_rootdn, "CN=ejabberd,CN=Users, dc=domain,dc=local"},
{ldap_password, "11111111"}
]}.
%{host_config, "jabber.domain.local", [
% {auth_method, ad},
% {ad_servers, ["192.168.201.3"]},
% {ad_uidattr, "sAMAccountName"},
% {ad_group, "CN=Jabber Users,CN=Users,dc=domain,dc=local"},
% {ad_base, "dc=domain,dc=local"},
% {ad_rootdn, "CN=ejabberd,CN=Users, dc=domain,dc=local"},
% {ad_password, "11111111"}
%]}.
%%% ===============
%%% TRAFFIC SHAPERS
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
%%% ====================
%%% ACCESS CONTROL LISTS
{acl, admin, {user, "admin", "localhost"}}.
{acl, admin, {user, "jadmin", "jabber.domain"}}.
%{acl, admin, {user, "adadmin", "jabber.ad"}}.
{acl, admin, {user, "ejabberd", "jabber.domain.local"}}.
{acl, local, {user_regexp, ""}}.
%%% ============
%%% ACCESS RULES
{access, max_user_sessions, [{10, all}]}.
{access, local, [{allow, local}]}.
{access, c2s, [{deny, blocked},
{allow, all}]}.
{access, c2s_shaper, [{none, admin},
{normal, all}]}.
{access, s2s_shaper, [{fast, all}]}.
{access, announce, [{allow, admin}]}.
%!!!!!!
{access, configure, [{allow, admin}]}.
%!!!!!!
{access, muc_admin, [{allow, admin}]}.
{access, muc, [{allow, all}]}.
{access, pubsub_createnode, [{allow, all}]}.
{access, register, [{allow, all}]}.
%%% ================
%%% DEFAULT LANGUAGE
{language, "en"}.
%%
%%{host_config, "localhost",
%% [{language, "ru"}]
%%}.
{modules,
[
{mod_adhoc, []},
{mod_announce, [{access, announce}]}, % recommends mod_adhoc
{mod_caps, []},
{mod_configure,[]}, % requires mod_adhoc
{mod_disco, []},
%%{mod_echo, [{host, "echo.localhost"}]},
{mod_irc, []},
{mod_last, []},
{mod_muc, [
%%{host, "conference.@HOST@"},
{access, muc},
{access_create, muc},
{access_persistent, muc},
{access_admin, muc_admin}
]},
%%{mod_muc_log,[]},
{mod_offline, []},
{mod_privacy, []},
{mod_private, []},
%%{mod_proxy65,[]},
{mod_pubsub, [ % requires mod_caps
{access_createnode, pubsub_createnode},
{plugins, ["default", "pep"]}
]},
{mod_register, [
%%
%% After successful registration, the user receives
%% a message with this subject and body.
%%
{welcome_message, {"Welcome!",
"Hi\nWelcome to this Jabber server."}},
%%
%% When a user registers, send a notification to
%% these Jabber accounts.
%%
%%{registration_watchers, ["admin1@example.org"]},
{access, register}
]},
{mod_roster, []},
%%{mod_service_log,[]},
{mod_shared_roster,[]},
{mod_stats, []},
{mod_time, []},
{mod_vcard, []},
{mod_version, []}
]}.
Может, кто-то подскажет в чем проблема?