ejabberd - Comments for "Virtual Host External authentication" https://www.ejabberd.im/node/3518 en When a user is added to your https://www.ejabberd.im/node/3518#comment-54278 <p>When a user is added to your friends list it crashes ejabberd is this due to the external authentication or should i have a file that pulls your friends from the site its integrated with as well</p> <p>Thanks again<br /> Jeff</p> Sat, 23 May 2009 02:29:59 +0000 nightsbird comment 54278 at https://www.ejabberd.im I figured it out lol had an https://www.ejabberd.im/node/3518#comment-54277 <p>I figured it out lol had an error in my php was missing a ")"</p> <p>Thanks for the help</p> Fri, 22 May 2009 23:39:14 +0000 nightsbird comment 54277 at https://www.ejabberd.im Hmm it fails both ways https://www.ejabberd.im/node/3518#comment-54276 <p>I tried with psi-im it says</p> <p>there was an error communicating with the server<br /> Details: Disconnected</p> <p>The ejabberd error log says</p> <p>** Reason for termination =<br /> ** {badarg,[{extauth,call_port,2},<br /> {ejabberd_auth,check_password_loop,2},<br /> {cyrsasl_plain,mech_step,2},<br /> {cyrsasl,server_step,2},<br /> {ejabberd_c2s,wait_for_feature_request,2},<br /> {gen_fsm,handle_msg,7},<br /> {proc_lib,init_p,5}]}</p> Fri, 22 May 2009 22:23:43 +0000 nightsbird comment 54276 at https://www.ejabberd.im Your config looks good https://www.ejabberd.im/node/3518#comment-54271 <div class="quote-msg"> <div class="quote-author"><em>nightsbird</em> wrote:</div> <pre> {auth_method, internal}. {host_config, "virtualhost2.com", [ {auth_method, external} ]}. {extauth_program, "php /opt/ejabberd-2.0.5/auth/ssc_ext_auth.php"}. </pre><p> will the auto internal at the top control all others </p></div> <p>The config file is read in order, and options are overwritten. In your case, first 'internal' is set to all, and later 'external' is set for virtualhost2.com. The result is like this:</p> <ul> <li>virtualhost1.com will use internal </li><li>virtualhost2.com will use external </li><li>virtualhost3.com will use internal </li><li>... use internal </li></ul> <p>Your configuration should work as you wanted.</p> <p>If it does not work correctly, try including the extauth_program option inside the host_config, like this:</p> <pre> {auth_method, internal}. {host_config, "virtualhost2.com", [ {extauth_program, "php /opt/ejabberd-2.0.5/auth/ssc_ext_auth.php"}, {auth_method, external} ]}. </pre> Fri, 22 May 2009 11:41:21 +0000 mfoss comment 54271 at https://www.ejabberd.im