ejabberd - Comments for "where to put the file for external authentication?" https://www.ejabberd.im/node/742 en Some ideas https://www.ejabberd.im/node/742#comment-53251 <div class="quote-msg"> <div class="quote-author"><em>bertneng</em> wrote:</div> <p>Error in process &lt;0.274.0&gt; on node 'ejabberd@localhost' with exit value: {einval,[{erlang,open_port,[{spawn,"C:\jabbertest\extauth.php"},[{packet,2}]]},{extauth,init,2}]}</p></div> <p>Ah, sorry, I never used extauth in Windows, only in Linux. I'll try to give some hints, maybe they help you to find the correct solution.</p> <p>The code in ejabberd that generates this error is called when ejabberd starts: it attempts to start your extauth script, and fails.</p> <p>So, you must specify the full path of a program that should be executable. If you specify a php script, then I guess you have PHP installed in such a way that the script can be executed as-is. Maybe you can also specify something like this: "C:\\PHP-5.0.0\\php.exe C:\\jabbertest\\extauth.php"</p> <p>You can repeat the error easily, and investigate what is the correct value:</p> <ol> <li>Start ejabberd. It will report that error. </li><li>Then start the program: Start -&gt; Programs -&gt; Process-one -&gt; Debug console </li><li>Now you can type commands, like:<br /> <pre>open_port({spawn, "C:\jabbertest\extauth.php"}, [{packet, 2}]).</pre></li><li>It will of course report the same error message. The benefit of this is that you can immediately try other strings. If you get a response like #Port&lt;0.462&gt; then you probably found the correct string. </li><li>For example, you can try the string "cmd.exe". Obviously, that is not a good extauth program for ejabberd :) </li><li>Once you finally find a string that seems to work, you can put it in ejabberd.cfg, stop Debug console, stop ejabberd, and start ejabberd again. </li></ol> <p>You can find more information of the <noindex><a href="http://www.erlang.org/doc/man/erlang.html#open_port-2" rel="nofollow" >open_port function</a></noindex></p> Tue, 03 Jun 2008 09:11:04 +0000 mfoss comment 53251 at https://www.ejabberd.im Still the same.. https://www.ejabberd.im/node/742#comment-53249 <p>I tried</p> <p> "C:\\jabbertest\\extauth.php"<br /> "C:\/jabbertest\/extauth.php"<br /> "C:/jabbertest/extauth.php"</p> <p>and getting the same error.</p> Tue, 03 Jun 2008 00:37:14 +0000 bertneng comment 53249 at https://www.ejabberd.im Maybe format of string? https://www.ejabberd.im/node/742#comment-53228 <div class="quote-msg"> <div class="quote-author"><em>bertneng</em> wrote:</div> <p>I'm getting the same error even I have my ejabberd.cfg pointing to the FULL PATH of the executable script.</p> <p>Error in process &lt;0.274.0&gt; on node 'ejabberd@localhost' with exit value: {einval,[{erlang,open_port,[{spawn,"C:\jabbertest\extauth.php"},[{packet,2}]]},{extauth,init,2}]}</p></div> <p>It seems you are using Windows. Maybe your problem is in the format of the string.</p> <p>If you currently have "C:\jabbertest\extauth.php" in ejabberd.cfg, try putting "C:\\jabbertest\\extauth.php". Or the opposite.</p> Sun, 01 Jun 2008 22:12:17 +0000 mfoss comment 53228 at https://www.ejabberd.im Same Error https://www.ejabberd.im/node/742#comment-53222 <p>I'm getting the same error even I have my ejabberd.cfg pointing to the FULL PATH of the executable script.</p> <p>Error in process &lt;0.274.0&gt; on node 'ejabberd@localhost' with exit value: {einval,[{erlang,open_port,[{spawn,"C:\jabbertest\extauth.php"},[{packet,2}]]},{extauth,init,2}]}</p> <p>Please help</p> Sun, 01 Jun 2008 12:43:03 +0000 bertneng comment 53222 at https://www.ejabberd.im The extauth program is https://www.ejabberd.im/node/742#comment-1656 <p>The extauth program is started by ejabberd on start so on ejabberd.cfg you should put the full path to the executable.</p> Sat, 29 Apr 2006 15:04:05 +0000 mfoss comment 1656 at https://www.ejabberd.im