25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01: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:
Alexey Shchepin 2005-04-18 18:41:57 +00:00
parent 374ea0b8f5
commit 77c8251300
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,9 @@
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
* src/msgs/pl.msg: New Polish translation (thanks to Andrew Smyk)

View File

@ -85,9 +85,13 @@
%{auth_method, external}.
%{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, "localhost"}.
{hosts, ["localhost"]}.
% Default language for server messages

View File

@ -68,7 +68,7 @@ escape(S) ->
%% {stop, Reason}
%%----------------------------------------------------------------------
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}]),
{ok, #state{odbc_ref = Ref}}.