Solved: Extauth error with php script

I've been having issues with this for the past week and I can't seem to get it to work.

Downloaded/installed a clean build of ejabberd and I set the cfg file to the following on my Ubuntu 12.04 server:

{auth_method, external}.
{extauth_program, "php /var/www/.../auth.php"}.

With the auth.php file being a copy of http://www.ejabberd.im/files/efiles/check_mysql.php.txt with the checkpass and checkuser returning true always.

And I keep getting the following error:

=ERROR REPORT==== 2014-* ===
C(<0.268.0>:extauth:146) : extauth script has exitted abruptly with reason 'normal'

Any help would be much appreciated.

Solved:
Turns out that it couldn't access the file in that location. Moved the file to /etc/ejabberd and it worked.

The way I was able to debug this was to put the debug level to 5 in the ejabberd.cfg and run ejabberdctl live (or in my case 'service ejabberd live')

Hi Everyone, Everything work

Hi Everyone,

Everything work well. But when I edit ejabberd.cfg to work with external authentication script then meet error:

- Config file:
%%{auth_method, internal}.
{auth_method, external}.
{extauth_program, "/etc/ejabberd/my_auth.php"}.

- Error report: C(<0.6790.0>:extauth:146) : extauth script has exitted abruptly with reason 'normal'
This error loop until the server stop.

I grant full permission to /etc/ejabberd/my_auth.php and run with php command, not error.

Thanks,
Nikul Chauhan

Hi There, I am also facing

Hi There,
I am also facing the same issue with extauth script.
I have also moved my script file to etc/ejabberd/aut_script.php
Also added php ejabberd.cfg file like below
{auth_method, external}.
{extauth_program, "php /etc/ejabberd/auth.php"}.

Still I am facing the same issue. It also won't allow me to login to admin panel if ejabberd on web.

Please help me out from this.

Syndicate content