I am using the sample authentication program from http://www.ejabberd.im/check_mysql_php
I asssured it is answaring "1" by adding return @pack("nn", 2, 1); and @flush($this->stdout); The program runs without errors but the authentication is rejected. The log of ejabberd shows this:
=INFO REPORT==== 2010-04-19 12:46:37 ===
I(<0.351.0>:ejabberd_listener:232) : (#Port<0.1481>) Accepted connection {{127,0,0,1},47208} -> {{127,0,0,1},5222}
=ERROR REPORT==== 2010-04-19 12:46:47 ===
E(<0.257.0>:extauth:80) : extauth call '["auth","yo","test.com","1234"]' didn't receive response
=INFO REPORT==== 2010-04-19 12:46:47 ===
I(<0.359.0>:ejabberd_c2s:494) : ({socket_state,gen_tcp,#Port<0.1481>,<0.358.0>}) Failed legacy authentication for yo@test.com/Kopete
It says it didn't receive response, but the authentication program sais it is sending it. I've checked the data it is being sending and it looks ok: 00 02 00 01
Any help please?
anv wrote: the authentication
the authentication program sais it is sending it. I've checked the data it is being sending and it looks ok: 00 02 00 01
How do you know that? I set this in the script, but nothing is logged. Those files aren't even created!