Closed Mark90 closed 9 years ago
As found by emias (irc), the scram functions are missing in the mssql ifdef section of src/odbc_queries.erl. These functions also need to be added in the sql/mssql20xx.sql files I guess.
I think the whole MSSQL stuff is broken in ejabberd.
@Mark90 Do you have a patch you would like us to review ?
Not sure why I wanted to compile with mssql in the first place... only need odbc. I would write a patch if I knew mssql but I don't.
@Mark90 nobody here knows mssql, but it's possible to use mysql-to-mssql converters.
@Mark90 We did our best to fix MSSQL support. Please checkout the latest git revision. In order to configure MSSQL you need to have FreeTDS and unixODBC libraries installed. This is only supported in Unix-like OS'es so far. The configuration should look like this:
odbc_type: mssql
odbc_server: "abcd.database.windows.net"
odbc_database: "ejabberd"
odbc_username: "ejabberd"
odbc_password: "*******"
Note that in some cases you need to add host part to odbc_username
, e.g.:
odbc_username: "ejabberd@host"
Let us know if it works for you. You can get new MSSQL schema here: https://github.com/processone/ejabberd/blob/master/sql/mssql.sql
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
I get the following output compiling 15.07 with --enable-mssql:
src/odbc_queries.erl:30: function add_user_scram/6 undefined src/odbc_queries.erl:30: function get_password_scram/2 undefined src/odbc_queries.erl:30: function get_privacy_list_data_t/2 undefined src/odbc_queries.erl:30: function get_private_data/2 undefined src/odbc_queries.erl:30: function set_password_scram_t/6 undefined src/odbc_queries.erl:30: function update/5 undefined src/odbc_queries.erl:30: function update_t/4 undefined ERROR: compile failed while processing /root/git/processone/ejabberd: rebar_abort
full output and commands: