ejabberd - Comments for "Getting ejabberd to work with an already set database of users." https://www.ejabberd.im/node/1044 en Thank you very much, https://www.ejabberd.im/node/1044#comment-2217 <p>Thank you very much, compiling with --enable-odbc worked, it still gave me warnings and i still had to get the mysql beam files from <noindex><a href="https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver" title="https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+with+MySQL+native+driver" rel="nofollow" >https://support.process-one.net/doc/display/MESSENGER/Using+ejabberd+wit...</a></noindex></p> <p>but i got the authentication to work with our database.</p> <p>somethings dont completely work tho, such as the web interface, but thats another monster.</p> <p>Thanks,<br /> Jeffrey R. | dS</p> Thu, 07 Sep 2006 19:48:58 +0000 dS_Jeffrey comment 2217 at https://www.ejabberd.im --enable-odbc? https://www.ejabberd.im/node/1044#comment-2207 <div class="quote-msg"> <div class="quote-author"><em>dS_Jeffrey</em> wrote:</div> <p>=ERROR REPORT==== 5-Sep-2006::15:44:30 ===<br /> ** State machine &lt;0.292.0&gt; terminating<br /> ** Last event in was {xmlstreamelement,<br /> ...<br /> ** Reason for termination =<br /> ** {'module could not be loaded',[{ejabberd_odbc,escape,["jeffrey"]},<br /> {ejabberd_auth_odbc,get_password,2},<br /> {lists,foldl,3},<br /> {cyrsasl_digest,mech_step,2},<br /> {cyrsasl,server_step,2},<br /> {ejabberd_c2s,wait_for_sasl_response,2},<br /> {gen_fsm,handle_msg,7},<br /> {proc_lib,init_p,5}]}</p> <p>=CRASH REPORT==== 5-Sep-2006::15:44:30 ===<br /> crasher:<br /> pid: &lt;0.292.0&gt;<br /> registered_name: []<br /> error_info: {undef,[{ejabberd_odbc,escape,["jeffrey"]},<br /> ... </p></div> <p>We see that the function <code>ejabberd_odbc:escape</code> is undefined (<code>undef</code>), as the module <code>ejabberd_odbc</code> could not be loaded.</p> <p>Did you configure ejabberd with <code>--enable-odbc</code>? It's not enabled by default. Or is there any other reason why the file <code>ejabberd_odbc.beam</code> is missing among the other beam files?</p> Tue, 05 Sep 2006 20:13:48 +0000 legoscia comment 2207 at https://www.ejabberd.im Well, it compiles cleanly https://www.ejabberd.im/node/1044#comment-2206 <p>Well, it compiles cleanly without the modifications, it seems as tho the variables are getting mixed up somewhere thus it starts throwing warnings.</p> <p>These are the errors i get when i try to authenticate a user.</p> <p>---------------------------------------------------------------------------------</p> <div class="quote-msg"> <div class="quote-author"><em>ejabberd.log</em> wrote:</div> <p>=ERROR REPORT==== 5-Sep-2006::15:44:30 ===<br /> ** State machine &lt;0.292.0&gt; terminating<br /> ** Last event in was {xmlstreamelement,<br /> {xmlelement,"response",<br /> [{"xmlns",<br /> "urn:ietf:params:xml:ns:xmpp-sasl"}],<br /> [{xmlcdata,<br /> &lt;&lt;"dXNlcm5hbWU9ImplZmZyZXkiLHJlYWxtPSJ kaWdzYnkwNC5yaXQuZWR1Iixub25jZT0iMTI2OTYxMTkwNyIsY25vbmNlPSJkNTgyOTU3YWQ4MzQ4YjR iMjY4OTlmY2NjNmYxNzhhNTFiOWMwMTY0IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ 4bXBwL2RpZ3NieTA0LnJpdC5lZHUiLGNoYXJzZXQ9dXRmLTgscmVzcG9uc2U9YTFmN2ZiZTRiMDhlODI yNjUwY2I1YjY1NTIwMDE3ODU="&gt;&gt;}]}}<br /> ** When State == wait_for_sasl_response<br /> ** Data == {state,#Port&lt;0.313&gt;,<br /> &lt;0.293.0&gt;,<br /> gen_tcp,<br /> "2996843388",<br /> {sasl_state,"jabber",<br /> "MYDOMAIN.COM",<br /> [],<br /> #Fun,<br /> #Fun,<br /> cyrsasl_digest,<br /> {state,<br /> 3,<br /> "1269611907",<br /> undefined,<br /> undefined,<br /> #Fun}},<br /> c2s,<br /> c2s_shaper,<br /> false,<br /> false,<br /> false,<br /> false,<br /> [],<br /> false,<br /> undefined,<br /> [],<br /> "MYDOMAIN.COM",<br /> [],<br /> undefined,<br /> {0,nil},<br /> {0,nil},<br /> {0,nil},<br /> {0,nil},<br /> undefined,<br /> undefined,<br /> undefined,<br /> false,<br /> none,<br /> [],<br /> false}<br /> ** Reason for termination =<br /> ** {'module could not be loaded',[{ejabberd_odbc,escape,["jeffrey"]},<br /> {ejabberd_auth_odbc,get_password,2},<br /> {lists,foldl,3},<br /> {cyrsasl_digest,mech_step,2},<br /> {cyrsasl,server_step,2},<br /> {ejabberd_c2s,wait_for_sasl_response,2},<br /> {gen_fsm,handle_msg,7},<br /> {proc_lib,init_p,5}]}</p> <p>=CRASH REPORT==== 5-Sep-2006::15:44:30 ===<br /> crasher:<br /> pid: &lt;0.292.0&gt;<br /> registered_name: []<br /> error_info: {undef,[{ejabberd_odbc,escape,["jeffrey"]},<br /> {ejabberd_auth_odbc,get_password,2},<br /> {lists,foldl,3},<br /> {cyrsasl_digest,mech_step,2},<br /> {cyrsasl,server_step,2},<br /> {ejabberd_c2s,wait_for_sasl_response,2},<br /> {gen_fsm,handle_msg,7},<br /> {proc_lib,init_p,5}]}<br /> initial_call: {gen,init_it,<br /> [gen_fsm,<br /> &lt;0.171.0&gt;,<br /> &lt;0.171.0&gt;,<br /> ejabberd_c2s,<br /> [{gen_tcp,#Port&lt;0.313&gt;},<br /> [{access,c2s},{shaper,c2s_shaper}]],<br /> []]}<br /> ancestors: [ejabberd_c2s_sup,ejabberd_sup,&lt;0.40.0&gt;]<br /> messages: [{'$gen_event',closed}]<br /> links: [&lt;0.171.0&gt;]<br /> dictionary: []<br /> trap_exit: false<br /> status: running<br /> heap_size: 1597<br /> stack_size: 21<br /> reductions: 14358<br /> neighbours:</p> <p>=SUPERVISOR REPORT==== 5-Sep-2006::15:44:30 ===<br /> Supervisor: {local,ejabberd_c2s_sup}<br /> Context: child_terminated<br /> Reason: {undef,[{ejabberd_odbc,escape,["jeffrey"]},<br /> {ejabberd_auth_odbc,get_password,2},<br /> {lists,foldl,3},<br /> {cyrsasl_digest,mech_step,2},<br /> {cyrsasl,server_step,2},<br /> {ejabberd_c2s,wait_for_sasl_response,2},<br /> {gen_fsm,handle_msg,7},<br /> {proc_lib,init_p,5}]}<br /> Offender: [{pid,&lt;0.292.0&gt;},<br /> {name,undefined},<br /> {mfa,{ejabberd_c2s,start_link,<br /> [{gen_tcp,#Port&lt;0.313&gt;},<br /> [{access,c2s},{shaper,c2s_shaper}]]}},<br /> {restart_type,temporary},<br /> {shutdown,brutal_kill},<br /> {child_type,worker}] </p></div> <p>---------------------------------------------------------------------------------</p> Tue, 05 Sep 2006 19:45:04 +0000 dS_Jeffrey comment 2206 at https://www.ejabberd.im Warnings from where? https://www.ejabberd.im/node/1044#comment-2204 <div class="quote-msg"> <div class="quote-author"><em>dS_Jeffrey</em> wrote:</div> <p>The only thing modified were the SQL queries, but i even made it keep the same column names. unfortunately this made the "make" command when compiling dump errors glore giving me about 50+ errors such as the following.</p> <p>Warning: variable 'Extra' is unused </p></div> <p>That's not an error, it's just a warning ;)</p> <p>Are you sure that those lines come from the <code>ejabberd_auth_odbc</code> module? There are many ejabberd modules that do produce many such warnings, but it seems that <code>ejabberd_auth_odbc</code> from ejabberd 1.1.1 compiles without warnings. If your changes have increased the number of warnings, you should pay attention, otherwise it will probably work anyway.</p> Tue, 05 Sep 2006 18:51:32 +0000 legoscia comment 2204 at https://www.ejabberd.im