ejabberd - Comments for "Ejabberd 1.1.4 + PostgreSQL 8.2" https://www.ejabberd.im/node/2728 en Finally, problem spotted https://www.ejabberd.im/node/2728#comment-51695 <div class="quote-msg"> <div class="quote-author"><em>sbsbessa</em> wrote:</div> <p>I have Ejabberd 1.1.4 installed and working with internal authentication, however, when trying to use PostgreSQL 8.2 I always get "Failed legacy authentication for user@hostname/resource" (when using flash client) or "" (using Exodus)</p> <p>The strange thing is that I can create users (using Exodus) and I can see the data being stored in the DB, however I cannot login...</p> <p>I tried using MySQL instead, replacing the configuration line as follows and it worked (with both Flash client or Exodus):<br /> %{odbc_server, {pgsql, "127.0.0.1", "DB_NAME", "USER", "PASSWORD"}}.<br /> {odbc_server, {mysql, "127.0.0.1", "DB_NAME", "USER", "PASSWORD"}}.</p> <p>I followed the steps in <noindex><a href="http://www.process-one.net/docs/ejabberd/guide_en.html" title="http://www.process-one.net/docs/ejabberd/guide_en.html" rel="nofollow" >http://www.process-one.net/docs/ejabberd/guide_en.html</a></noindex> during the installation<br /> and got the native PostgreSQL driver from <noindex><a href="http://jungerl.sourceforge.net/" title="http://jungerl.sourceforge.net/" rel="nofollow" >http://jungerl.sourceforge.net/</a></noindex> which I compiled and copied the 'beam' files into /var/lib/ejabberd/ebin/</p> <p>Could this be a problem with the driver?<br /> Does anyone have this problem?<br /> Any hints on how to debug this problem?</p></div> <p>It seems the problem is in the pgsql-erlang driver. I got it from ejabberd-modules SVN, and had exactly the same problem than you.</p> <p>Then I got a slightly older version of the pgsql from SVN:<br /> $ svn up -r 412<br /> Compiled, installed and ejabberd now allows me to login correctly!</p> <p>You can compile the modified file yourself, or get it here:<br /> <noindex><a href="http://tkabber.jabber.ru/files/badlop/pgsql_util.beam" title="http://tkabber.jabber.ru/files/badlop/pgsql_util.beam" rel="nofollow" >http://tkabber.jabber.ru/files/badlop/pgsql_util.beam</a></noindex><br /> If you try, tell me if it solves your problem or not, and also what exact version of PostgreSQL did you try.</p> <p>This bug is tracked here:<br /> <noindex><a href="https://support.process-one.net/browse/EJAB-511" rel="nofollow" >Authentication with pgsql driver is broken</a></noindex></p> Mon, 28 Jan 2008 11:44:22 +0000 mfoss comment 51695 at https://www.ejabberd.im Same here... https://www.ejabberd.im/node/2728#comment-51571 <p>Same here...</p> Sat, 05 Jan 2008 18:57:46 +0000 Anonymous comment 51571 at https://www.ejabberd.im i have the same problemm. in https://www.ejabberd.im/node/2728#comment-51462 <p>i have the same problemm. in postgresql 8.2.1 there wasn't such problemm. I think that problemm will be with backend pgsql. system show that ejabber is connected with database. I can connect to ejabberd serwer, but I can't authorize. when I run ejabberdctl I can add new user.</p> Thu, 13 Dec 2007 19:58:55 +0000 Anonymous comment 51462 at https://www.ejabberd.im