ejabberd - Comments for "Java Basic extauth script" https://www.ejabberd.im/forum/25388/java-basic-extauth-script en Hello Timoshenko, Thanks a https://www.ejabberd.im/forum/25388/java-basic-extauth-script#comment-67284 <p>Hello Timoshenko,</p> <p>Thanks a lot for posting this java basic script for ejabberd extauth. I used this code in SCMain.java file and compiled it to SCMain.class file. Then after I used it in ejabberd.yml file like below:</p> <p>auth_method : "external"<br /> extauth_program : "java path_to_classfile/SCMain"</p> <p>I restarted ejabberd server and tried to authenticate from iOS client. For testing purpose, I did not change anything from code. Since fromEjabberd method returns true, so it should authenticate. But, I am not getting authenticated. Ejabberd shows logs as below : </p> <p>(1). extauth script exitted abruptly with reason normal.</p> <p>(2). ["&lt;&lt;auth&gt;&gt;", "&lt;&lt;username&gt;&gt;","&lt;&lt;server&gt;&gt;","&lt;&lt;password&gt;&gt;"] didn't received response.</p> <p>After that authentication fails.</p> <p>Please help me to get it resolve and let me authenticate with ejabberd extauth.</p> <p>Thanks,<br /> Santosh Kumar</p> Fri, 27 Jan 2017 16:59:46 +0000 santoshkmr comment 67284 at https://www.ejabberd.im