<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>L'Ouvre Boite - Latest Comments in Authenticating Ejabberd against a Ruby On Rails database</title><link>http://ouvre-boite.disqus.com/</link><description></description><atom:link href="https://ouvre-boite.disqus.com/authenticating_ejabberd_against_a_ruby_on_rails_database/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 14 Nov 2008 03:58:31 -0000</lastBuildDate><item><title>Re: Authenticating Ejabberd against a Ruby On Rails database</title><link>http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/#comment-3768138</link><description>&lt;p&gt;Do you know ejabberd has the ability to send a copy of a message to the external app/script or to another account (as CC:)?&lt;br&gt;Thanks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladimir</dc:creator><pubDate>Fri, 14 Nov 2008 03:58:31 -0000</pubDate></item><item><title>Re: Authenticating Ejabberd against a Ruby On Rails database</title><link>http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/#comment-3675941</link><description>&lt;p&gt;I have resolved this problem :)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladimir</dc:creator><pubDate>Tue, 11 Nov 2008 03:13:30 -0000</pubDate></item><item><title>Re: Authenticating Ejabberd against a Ruby On Rails database</title><link>http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/#comment-3660265</link><description>&lt;p&gt;Before I switched to odbc authentication (using mysql db) and then I commended all other auth methods instead of 'external' one.&lt;br&gt;As I see script is called everytime when I start ejabberd service. I added logging all actions into file what are performed by this script:&lt;br&gt;---&lt;br&gt;&lt;a href="http://File.open" rel="nofollow noopener" target="_blank" title="File.open"&gt;File.open&lt;/a&gt;('/var/lib/ejabberd/auth.log', "w+") do |f|&lt;br&gt;f.write("Starting authentication ...\n")&lt;br&gt;........&lt;br&gt;---&lt;br&gt;When I start the service I see the zero-length log-file. So script was started but it is failed. After this script is not called (I remove log-file and try to connect by Psi and log-file is not created anymore).&lt;/p&gt;&lt;p&gt;Btw, I have changed 'ejabberd' user shell to /bin/bash&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladimir</dc:creator><pubDate>Mon, 10 Nov 2008 05:00:02 -0000</pubDate></item><item><title>Re: Authenticating Ejabberd against a Ruby On Rails database</title><link>http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/#comment-3625243</link><description>&lt;p&gt;Hi Vladimir,&lt;/p&gt;&lt;p&gt;I had the same kind of problem when I forgot to comment the "default" authentication lines ;-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Julien</dc:creator><pubDate>Sat, 08 Nov 2008 12:11:18 -0000</pubDate></item><item><title>Re: Authenticating Ejabberd against a Ruby On Rails database</title><link>http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/#comment-3589609</link><description>&lt;p&gt;Thank you for the post.&lt;/p&gt;&lt;p&gt;Just now I am trying to add external auth for ejabberd against ruby on rails but I always get the following error message: "Authentication Error: No appropriate mechanism available for given security settings " (I use Psi as a client app).&lt;br&gt;The first I tried to use your script w/o changes (connection settings were changed :) ).&lt;br&gt;Then I have changed code of your script to more simple: remove all requires and simply return 1 for 'auth' and 'isuser'. But the issue appears as well.&lt;/p&gt;&lt;p&gt;ejabberd.cfg settings:&lt;br&gt;{auth_method, external}.&lt;br&gt;{extauth_program, "/var/lib/ejabberd/bin/ejabberd-auth-simple.rb"}.&lt;/p&gt;&lt;p&gt;Could you help me and advise who can I resolve this issue? Thanks.&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vladimir</dc:creator><pubDate>Fri, 07 Nov 2008 05:55:53 -0000</pubDate></item><item><title>Re: Authenticating Ejabberd against a Ruby On Rails database</title><link>http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/#comment-3322404</link><description>&lt;p&gt;Tssstssstss!  Come on, isn't Ruby a wonderful language that you can almost read like English?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Julien</dc:creator><pubDate>Mon, 27 Oct 2008 07:33:30 -0000</pubDate></item><item><title>Re: Authenticating Ejabberd against a Ruby On Rails database</title><link>http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/#comment-3322202</link><description>&lt;p&gt;Trop barbu comme sujet pour que je m'imisce.&lt;br&gt;I stay out of this Egghead topic...&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Le Tribulateur</dc:creator><pubDate>Mon, 27 Oct 2008 06:50:45 -0000</pubDate></item></channel></rss>