To access the most up-to-date ejabberd documentation, please visit docs.ejabberd.im »
External authentication script for MySQL, written in PHP
LISSY Alexandre (Lissyx)
If you're seeing the following error after using the script above...
extauth script has exitted abruptly with reason 'normal'
You could be using a newer version of php. i.e. php > 5.4 in which case the following command in the script above is deprecated.
Make sure to remove or comment that line out.
I am starting with Ejabberd. And my connection and authentication and chat work correctly when authentication was internal
. But when I edit ejabberd.cfg to work with external authentication script then meet error:
- Config file:
- 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.
Please help me!
Thanks in Advance..
When I am trying to login in admin area I get this :
2016-07-26 18:41:39.550 [error] <0.10430.0>@extauth:loop:131 extauth call '[<<"auth">>,<<"admin">>,<<"localhost">>,<<"test">>]' didn't receive response2016-07-26 18:41:39.550 [error] <0.10106.0>@ejabberd_auth:is_user_exists:316 The authentication module ejabberd_auth_external returned an errorwhen checking user <<"admin">> in server <<"localhost">>Error message: badarg2016-07-26 18:41:39.550 [warning] <0.10106.0>@ejabberd_web_admin:process:239 Access of <<"admin@localhost">> from <<"x.x.x.x">> failed with error: <<"inexistent-account">>
Im using this https://github.com/cburschka/ejabberd-auth-php. Any idea? The tests give me all ok, the log file doesnt show nothing when ejabberd make the extauth call. My configuration is:
auth_method: externalextauth_program: "/etc/ejabberd/extauth/main.php"
I also check the permissions, all seems correct, with chmod 777 file and chown ejabberd:ejabberd I get the same. I dont know what to do more. With su ejabberd the php file executes correctly
SOLVED: I installed eJabberd from .deb in /opt, running ejabberdctl live I discover that the libssl from /opt/ejabberd/lib/linux*/libssl.1.0.0 wasn't update to the openssl 1.0.2 (last required for PHP 7.0). I download last libssl.deb and I extracted in the lib eJabberd directory. Now is working correctly