mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-12 21:52:07 +02:00
* src/odbc/ejabberd_odbc.erl: ODBC connection string can be
specified via odbc_server option now * src/ejabberd.cfg.example: Added ODBC usage example SVN Revision: 314
This commit is contained in:
parent
374ea0b8f5
commit
77c8251300
|
@ -1,5 +1,9 @@
|
||||||
2005-04-18 Alexey Shchepin <alexey@sevcom.net>
|
2005-04-18 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
* src/odbc/ejabberd_odbc.erl: ODBC connection string can be
|
||||||
|
specified via odbc_server option now
|
||||||
|
* src/ejabberd.cfg.example: Added ODBC usage example
|
||||||
|
|
||||||
* doc/guide.tex: Updated
|
* doc/guide.tex: Updated
|
||||||
|
|
||||||
* src/msgs/pl.msg: New Polish translation (thanks to Andrew Smyk)
|
* src/msgs/pl.msg: New Polish translation (thanks to Andrew Smyk)
|
||||||
|
|
|
@ -85,9 +85,13 @@
|
||||||
%{auth_method, external}.
|
%{auth_method, external}.
|
||||||
%{extauth_program, "/path/to/authentification/script"}.
|
%{extauth_program, "/path/to/authentification/script"}.
|
||||||
|
|
||||||
|
% For authentification via ODBC use the following:
|
||||||
|
%{auth_method, odbc}.
|
||||||
|
%{odbc_server, "DSN=ejabberd;UID=ejabberd;PWD=ejabberd"}.
|
||||||
|
|
||||||
|
|
||||||
% Host name:
|
% Host name:
|
||||||
{host, "localhost"}.
|
{hosts, ["localhost"]}.
|
||||||
|
|
||||||
|
|
||||||
% Default language for server messages
|
% Default language for server messages
|
||||||
|
|
|
@ -68,7 +68,7 @@ escape(S) ->
|
||||||
%% {stop, Reason}
|
%% {stop, Reason}
|
||||||
%%----------------------------------------------------------------------
|
%%----------------------------------------------------------------------
|
||||||
init([]) ->
|
init([]) ->
|
||||||
{ok, Ref} = odbc:connect("DSN=ejabberd;UID=ejabberd;PWD=ejabberd",
|
{ok, Ref} = odbc:connect(ejabberd_config:get_local_option(odbc_server),
|
||||||
[{scrollable_cursors, off}]),
|
[{scrollable_cursors, off}]),
|
||||||
{ok, #state{odbc_ref = Ref}}.
|
{ok, #state{odbc_ref = Ref}}.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user