ejabberd custom auth adapter (php - mysql)

Hi

I've installed ejabberd on my centos server, and now i'm trying to get it to work with a custom auth adapter, using php and mysql.

So i've modified the script i've found here on the website, and the ejabberd.cfg with the right filename. Below is my auth script and my config file:

I'm testing using iChat on my macbook, it hangs at "connecting" and after a minute or 2 it asks for password again saying that either username or password is wrong. As you see in the script i'm sending a mail in the checkuser script, but i dont get this email, so it seems like the script isnt event run.

Auth script:
http://pastebin.ca/2086088

Config file:
http://pastebin.com/j5C53npY

Thx,
Daniel

I've tried with the joomla

I've tried with the joomla script also now, just changing the password field. I get this error in the ejabberd.log file:

=ERROR REPORT==== 2011-10-02 14:46:56 ===
C(<0.12490.0>:extauth:146) : extauth script has exitted abruptly with reason 'normal'

Syndicate content