ejabberd - Comments for "many problems: pam / hostname / ejabberctl crash" https://www.ejabberd.im/node/2391 en Anonymous https://www.ejabberd.im/node/2391#comment-45033 <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>I've been trying to install ejabberd with pam authentication.<br /> I compiled everyting as described here:<br /> http://www.ejabberd.im/pam</p></div> <p>There are three different contributed patches that (try to) implement PAM auth in ejabberd. None of them is yet included in ejabberd SVN. From what I know, the best of them technically speaking is this one: <noindex><a href="/ejabberd_auth_pam" rel="nofollow" >Authenticate Against PAM (alternate version)</a></noindex>, and is being reviewed to be included in ejabberd before the next release is published (see <noindex><a href="https://support.process-one.net/browse/EJAB-307" rel="nofollow" >bug tracker issue</a></noindex>). The bad news is that the patch is built against ejabberd SVN, so you may need to make small changes to apply it to ejabberd 1.1.x.</p> <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>if I type 'ejabberdctl' I get<br /> {"init terminating in do_boot",{badarg,[{ets,match_object,[ejabberd_ctl_cmds,'_']},{ets,tab2list,1},{ejabberd_ctl,print_usage,0},{ejabberd_ctl,start,0},{init,start_it,1},{init,start_em,1}]}}</p> <p>Crash dump was written to: erl_crash.dump<br /> init terminating in do_boot ()</p></div> <p>In ejabberd 1.1.x, probably the script ejabberdctl is not installed in the right path.</p> <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>and if I type 'ejabberdctl myusername@myservername.tld' I get<br /> RPC failed on the node 'myusername@servernam.tld': nodedown</p> <p>=ERROR REPORT==== 17-Aug-2007::23:20:05 ===<br /> ** System NOT running to use fully qualified hostnames **<br /> ** Hostname myservername.tld is illegal **</p> <p>incidentaly<br /> hostname -s gives myservername and hostname -f gives myservername.tld </p></div> <p>Maybe this works: ejabberdctl myservername</p> <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>%%% Add new auth method<br /> {auth_method, [internal, pam]}.</p> <p>%%% Default pam service "login" can be change<br /> %{pam_service, "login"}.<br /> %%% Default pam prompt "Password:" can be change<br /> %{pam_prompt_pwd, "Password:"}.</p> <p>% Host name:<br /> {hosts, ["myservername.tld"]}. </p></div> <p>Please note that the lines with pam configuration are commented. Uncomment them and try again. Or try the pam patch that I linked before.</p> <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>When I try to connect to the server with kopete and use <noindex><a href="mailto:myusername@myservername.tld" rel="nofollow" >myusername@myservername.tld</a></noindex> and my password:<br /> I(&lt;0.306.0&gt;:ejabberd_c2s:417): ({tlssock,#Port&lt;0.352&gt;,#Port&lt;0.356&gt;}) Failed legacy authentication for myusername@myservername.tld/Kopete</p> <p>is PAM even coming to play here? </p></div> <p>Probably no, because PAM was not completely configured. Remove the % characters and try again :)</p> <div class="quote-msg"> <div class="quote-author"><em>Anonymous</em> wrote:</div> <p>PS how exactly do I have to change the line</p> <pre> {5280, ejabberd_http, [http_poll, web_admin]},</pre><p>to get <noindex><a href="http://localhost:5280" title="http://localhost:5280" rel="nofollow" >http://localhost:5280</a></noindex> to work but not <noindex><a href="http://myservername.tld:5280" title="http://myservername.tld:5280" rel="nofollow" >http://myservername.tld:5280</a></noindex><br /> as in http://www.ejabberd.im/node/1674</p></div> <p>As explained in the ejabberd Guide, this configuration should do what you want:</p> <pre> {5280, ejabberd_http, [http_poll, web_admin, {ip, {127, 0, 0, 1}} ]},</pre> Sat, 18 Aug 2007 07:46:00 +0000 mfoss comment 45033 at https://www.ejabberd.im