-
Website
http://www.ouvre-boite.com -
Original page
http://www.ouvre-boite.com/2008/10/24/authenticating-ejabberd-against-a-ruby-on-rails-database/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
manu
2 comments · 1 points
-
outdoor sinks
1 comment · 1 points
-
Domain Names
1 comment · 1 points
-
ginevra
1 comment · 1 points
-
Christophe Maximin
1 comment · 1 points
-
-
Popular Threads
I stay out of this Egghead topic...
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).
The first I tried to use your script w/o changes (connection settings were changed :) ).
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.
ejabberd.cfg settings:
{auth_method, external}.
{extauth_program, "/var/lib/ejabberd/bin/ejabberd-auth-simple.rb"}.
Could you help me and advise who can I resolve this issue? Thanks.
I had the same kind of problem when I forgot to comment the "default" authentication lines ;-)
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:
---
File.open('/var/lib/ejabberd/auth.log', "w+") do |f|
f.write("Starting authentication ...\n")
........
---
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).
Btw, I have changed 'ejabberd' user shell to /bin/bash
Thanks.