mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
* examples/mtr/ejabberd.cfg: Updatted (thanks to Marshall T. Rose)
* src/ejabberd_auth.erl: LDAP attribute that holds user ID now configurable * src/ejabberd.cfg.example: Updated SVN Revision: 178
This commit is contained in:
parent
9fc8e18eb3
commit
b154f75523
@ -1,3 +1,11 @@
|
|||||||
|
2003-11-27 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* examples/mtr/ejabberd.cfg: Updatted (thanks to Marshall T. Rose)
|
||||||
|
|
||||||
|
* src/ejabberd_auth.erl: LDAP attribute that holds user ID now
|
||||||
|
configurable
|
||||||
|
* src/ejabberd.cfg.example: Updated
|
||||||
|
|
||||||
2003-11-26 Alexey Shchepin <alexey@sevcom.net>
|
2003-11-26 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/ejabberd_c2s.erl: Fixed processing of presence probe from
|
* src/ejabberd_c2s.erl: Fixed processing of presence probe from
|
||||||
|
@ -1,42 +1,44 @@
|
|||||||
% $Id$
|
% jabber.dbc.mtview.ca.us
|
||||||
|
|
||||||
override_acls.
|
override_acls.
|
||||||
|
|
||||||
{acl, admin, {user, "mrose", "jabber.dbc.mtview.ca.us"}}.
|
{acl, admin, {user, "mrose", "jabber.dbc.mtview.ca.us"}}.
|
||||||
|
|
||||||
{acl, jabberorg, {server, "jabber.org"}}.
|
|
||||||
{acl, mrose, {user, "mrose", "jabber.dbc.mtview.ca.us"}}.
|
|
||||||
|
|
||||||
|
{access, announce, [{allow, admin},
|
||||||
{shaper, normal, {maxrate, 1000}}.
|
|
||||||
|
|
||||||
|
|
||||||
{access, disco_admin, [{allow, admin},
|
|
||||||
{deny, all}]}.
|
{deny, all}]}.
|
||||||
|
|
||||||
{access, configure, [{allow, admin}]}.
|
|
||||||
|
|
||||||
{access, c2s, [{deny, blocked},
|
{access, c2s, [{deny, blocked},
|
||||||
{allow, all}]}.
|
{allow, all}]}.
|
||||||
|
|
||||||
|
|
||||||
{access, c2s_shaper, [{none, admin},
|
{access, c2s_shaper, [{none, admin},
|
||||||
{normal, all}]}.
|
{normal, all}]}.
|
||||||
|
{access, configure, [{allow, admin},
|
||||||
{access, muc_admin, [{allow, admin}]}.
|
{deny, all}]}.
|
||||||
|
{access, disco_admin, [{allow, admin},
|
||||||
|
{deny, all}]}.
|
||||||
|
{access, muc_admin, [{allow, admin},
|
||||||
|
{deny, all}]}.
|
||||||
|
{access, register, [{deny, all}]}.
|
||||||
|
{access, s2s_shaper, [{fast, all}]}.
|
||||||
|
|
||||||
|
|
||||||
|
{auth_method, internal}.
|
||||||
{host, "jabber.dbc.mtview.ca.us"}.
|
{host, "jabber.dbc.mtview.ca.us"}.
|
||||||
|
|
||||||
{listen, [{5222, ejabberd_c2s, [{access, c2s},
|
|
||||||
{shaper, c2s_shaper}]},
|
|
||||||
{5223, ejabberd_c2s, [{access, c2s},
|
|
||||||
{ssl, [{certfile, "/etc/openssl/certs/ejabberd.pem"}]}]},
|
|
||||||
{5269, ejabberd_s2s_in, []}
|
|
||||||
]}.
|
|
||||||
|
|
||||||
% This value (5569) is only for debugging, must be 5269
|
|
||||||
{outgoing_s2s_port, 5269}.
|
{outgoing_s2s_port, 5269}.
|
||||||
|
{shaper, normal, {maxrate, 1000}}.
|
||||||
|
{shaper, fast, {maxrate, 50000}}.
|
||||||
|
{welcome_message, none}.
|
||||||
|
|
||||||
|
|
||||||
|
{listen, [{5222, ejabberd_c2s,
|
||||||
|
[{access, c2s},
|
||||||
|
{shaper, c2s_shaper}]},
|
||||||
|
{5223, ejabberd_c2s,
|
||||||
|
[{access, c2s},
|
||||||
|
{shaper, c2s_shaper},
|
||||||
|
{ssl, [{certfile, "/etc/openssl/certs/ejabberd.pem"}]}]},
|
||||||
|
{5269, ejabberd_s2s_in,
|
||||||
|
[{shaper, s2s_shaper}]}]}.
|
||||||
|
|
||||||
|
|
||||||
{modules, [
|
{modules, [
|
||||||
{mod_register, []},
|
{mod_register, []},
|
||||||
@ -52,13 +54,13 @@ override_acls.
|
|||||||
% {mod_irc, []},
|
% {mod_irc, []},
|
||||||
{mod_muc, []},
|
{mod_muc, []},
|
||||||
{mod_pubsub, []},
|
{mod_pubsub, []},
|
||||||
{mod_time, [{iqdisc, no_queue}]},
|
{mod_time, []},
|
||||||
|
{mod_last, []},
|
||||||
{mod_version, []}
|
{mod_version, []}
|
||||||
]}.
|
]}.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
% Local Variables:
|
% Local Variables:
|
||||||
% mode: erlang
|
% mode: erlang
|
||||||
% End:
|
% End:
|
||||||
|
@ -69,6 +69,7 @@
|
|||||||
% For LDAP uthentification use these lines instead of above one:
|
% For LDAP uthentification use these lines instead of above one:
|
||||||
%{auth_method, ldap}.
|
%{auth_method, ldap}.
|
||||||
%{ldap_servers, ["localhost"]}. % List of LDAP servers
|
%{ldap_servers, ["localhost"]}. % List of LDAP servers
|
||||||
|
%{ldap_uidattr, "uid"}. % LDAP attribute that holds user ID
|
||||||
%{ldap_base, "dc=example,dc=com"}. % Base of LDAP directory
|
%{ldap_base, "dc=example,dc=com"}. % Base of LDAP directory
|
||||||
|
|
||||||
|
|
||||||
|
@ -343,7 +343,8 @@ is_user_exists_ldap(User) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
find_user_dn(User) ->
|
find_user_dn(User) ->
|
||||||
Filter = eldap:equalityMatch("uid", User),
|
Attr = ejabberd_config:get_local_option(ldap_uidattr),
|
||||||
|
Filter = eldap:equalityMatch(Attr, User),
|
||||||
Base = ejabberd_config:get_local_option(ldap_base),
|
Base = ejabberd_config:get_local_option(ldap_base),
|
||||||
case eldap:search("ejabberd", [{base, Base},
|
case eldap:search("ejabberd", [{base, Base},
|
||||||
{filter, Filter},
|
{filter, Filter},
|
||||||
|
Loading…
Reference in New Issue
Block a user