acl admin user dextor jabber kirovnet ru acl admin user sorokin kirov

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
{acl, admin, {user, "dextor", "jabber.kirovnet.ru"}}.
{acl, admin, {user, "a.sorokin", "kirov.multinex.ru"}}.
{hosts, ["jabber.kirovnet.ru", "kirov.multinex.ru"]}.
{loglevel, 4}.
{route_subdomains, s2s}.
{listen,
[
{5222, ejabberd_c2s, [
{access, c2s},
{shaper, c2s_shaper},
{max_stanza_size, 65536},
starttls, {certfile, "/etc/ejabberd/ejabberd.pem"}
]},
{5269, ejabberd_s2s_in, [
{shaper, s2s_shaper},
{max_stanza_size, 131072}
]},
{5347, ejabberd_service, [
{access, all},
{shaper_rule, fast},
{hosts, ["icq.jabber.kirovnet.ru"], [{password, "***"}]}
]},
{5348, ejabberd_service, [
{access, all},
{shaper_rule, fast},
{hosts, ["j2j.jabber.kirovnet.ru"], [{password, "**"}]}
]},
{5349, ejabberd_service, [
{access, all},
{shaper_rule, fast},
{host, "mrim.jabber.kirovnet.ru", [{password, "**"}]}
]},
{5280, ejabberd_http, [
http_poll,
web_admin
]}
]}.
{s2s_use_starttls, true}.
{s2s_certfile, "/etc/ejabberd/ejabberd.pem"}.
{s2s_default_policy, allow}.
{host_config, "jabber.kirovnet.ru", [{auth_method, internal}]}.
{host_config, "kirov.multinex.ru", [{auth_method, ldap},
{ldap_servers, ["192.168.1.253"]},
{ldap_port, 389},
{ldap_rootdn, "cn=ldap,cn=users,dc=vktv,dc=localdomain"},
{ldap_password, "**)"},
{ldap_base, "dc=vktv,dc=localdomain"},
{ldap_uids, [{"mail", "%u@kirov.multinex.ru"}]}
]}.
{shaper, normal, {maxrate, 1000}}.
{shaper, fast, {maxrate, 50000}}.
{acl, local, {user_regexp, ""}}.
{acl, notify, {user, "notify", "jabber.kirovnet.ru"}}.
{access, max_user_sessions, [{10, all}]}.
{access, local, [{allow, local}]}.
{access, c2s, [{deny, blocked},
{allow, all}]}.
{access, c2s_shaper, [{none, admin},
{none, notify},
{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, register, [{allow, all}]}.
{access, pubsub_createnode, [{allow, all}]}.
{language, "ru"}.
{modules,
[
{mod_adhoc, []},
{mod_announce, [{access, announce}]}, % requires mod_adhoc
{mod_caps, []},
{mod_configure,[]}, % requires mod_adhoc
{mod_ctlextra, []},
{mod_disco, []},
%%{mod_echo, [{host, "echo.localhost"}]},
%%{mod_irc, []},
{mod_last, []},
%%{mod_muc_log,[]},
{mod_offline, []},
{mod_privacy, []},
{mod_private, []},
{mod_proxy65, [
{access, local},
{shaper, c2s_shaper}
]},
{mod_pubsub, [ % requires mod_caps
{access_createnode, pubsub_createnode},
{plugins, ["default", "pep"]}
]},
{mod_roster, []},
%%{mod_service_log,[]},
%%{mod_shared_roster,[]},
{mod_stats, []},
{mod_time, []},
{mod_version, []}
]}.
{host_config, "jabber.kirovnet.ru", [{{add, modules}, [
{mod_muc, [
{host, "conference.jabber.kirovnet.ru"},
{access, muc},
{access_create, muc},
{access_persistent, muc},
{access_admin, muc_admin},
{max_users, 500}
]},
{mod_register, [
{welcome_message, none},
%%{registration_watchers, ["admin1@example.org"]},
{access, register}
]},
{mod_vcard, []}
]}]}.
{host_config, "kirov.multinex.ru", [{{add, modules}, [
{mod_shared_roster_ldap,
[{ldap_groupattr,"department"},
{ldap_groupdesc,"department"},
{ldap_rfilter, "(ObjectClass=organizationalPerson)"},
%%{ldap_rfilter, "(memberOf=CN=Jabber,DC=vktv,DC=localdomain)"},
{ldap_memberattr,"mail"},
{ldap_memberattr_format, "%u@kirov.multinex.ru"},
{ldap_userdesc,"cn"}
]},
{mod_vcard_ldap,
[{ldap_vcard_map,
[{"NICKNAME", "%s", ["displayname"]},
{"GIVEN", "%s", ["givenName"]},
{"MIDDLE", "%s", ["initials"]},
{"FAMILY", "%s", ["sn"]},
{"FN", "%s", ["displayName"]},
{"EMAIL", "%s", ["mail"]},
{"ORGNAME", "%s", ["company"]},
{"ORGUNIT", "%s", ["department"]},
{"CTRY", "%s", ["c"]},
{"STREET", "%s", ["streetAddress"]},
{"REGION", "%s", ["st"]},
{"PCODE", "%s", ["postalCode"]},
{"TITLE", "%s", ["title"]},
{"URL", "%s", ["wWWHomePage"]},
{"DESC", "%s", ["description"]},
{"PHOTO", "%s", ["jpegPhoto"]},
{"TEL", "%s", ["telephoneNumber"]}]},
{ldap_search_fields,
[{"User", "%u@kirov.multinex.ru"},
{"Name", "givenName"},
{"Family Name", "sn"},
{"Email", "mail"},
{"Company", "company"},
{"Department", "department"},
{"Role", "title"},
{"Description", "description"},
{"Phone", "telephoneNumber"}]},
{ldap_search_reported,
[{"Full Name", "FN"},
{"Nickname", "NICKNAME"},
{"Email", "EMAIL"}]}
]}
]}]}.