ejabberd - Comments for "SASL: Disable GSSAPI" https://www.ejabberd.im/node/4642 en Re: https://www.ejabberd.im/node/4642#comment-57255 <div class="quote-msg"> <div class="quote-author"><em>vasq10</em> wrote:</div> <p>GSSAPI/Kerberos is not configured on the server.</p> <p>No, I didn't enable it. It's not clear to me, what to override and how to do it.</p></div> <p>Oh, then override_* will not help you on this problem.</p> <p>Offtopic: you can check in the ejabberd Guide what are the override_* options.</p> Tue, 26 Apr 2011 10:36:48 +0000 mfoss comment 57255 at https://www.ejabberd.im vasq10 wrote:Can I change https://www.ejabberd.im/node/4642#comment-57254 <div class="quote-msg"> <div class="quote-author"><em>vasq10</em> wrote:</div> <p>Can I change the configuration so that ejabberd doesn't advertise GSSAPI?</p></div> <p>With your explanations and what I find in the source code, when GSSAPI support is included into ejabberd, there's no way to stop adverticing it to clients! Even if you remove cyrsasl_gssapi.beam and remove any configuration about gssapi, it is still attempted to load, and adverticed.</p> <p>The only solution is to modify the source code, and recompile. If you installed ejabberd from a binary package, you will have to do this:<br /> 1. Install the erlang compiler (a program called erlc) of the same erlang version you use to run ejabberd (R12, R13, or whatever)<br /> 2. Download ejabberd source code<br /> 3. In the file src/cyrsasl.erl delete one line:</p> <pre> --- a/src/cyrsasl.erl +++ b/src/cyrsasl.erl @@ -51,7 +51,6 @@ start() -&gt; ets:new(sasl_mechanism, [named_table, public, {keypos, #sasl_mechanism.mechanism}]), - cyrsasl_gssapi:start([]), cyrsasl_plain:start([]), cyrsasl_digest:start([]), cyrsasl_anonymous:start([]), </pre><p>4. Recompile that file: erlc cyrsasl.erl<br /> 5. Copy cyrsasl.beam to your ejabberd installed dir, to overwrite the old file<br /> 6. Restart ejabberd. Now GSSAPI isn't announced to clients.</p> <p>In ejabberd master, and in my updated gssapi-2.1.x branch, GSSAPI support is disabled when not configured.</p> Tue, 26 Apr 2011 10:34:00 +0000 mfoss comment 57254 at https://www.ejabberd.im GSSAPI beam and override https://www.ejabberd.im/node/4642#comment-57253 <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>ejabberd 2.1.4 does not support GSSAPI. Maybe you are using a custom version that includes that feature. </p></div> <p>Yes, probably a patched version. There is a cyrsasl_gssapi.beam, I did rename it but then ejabberd wouldn't start.</p> <div class="quote-msg"> <div class="quote-author"><em>vasq10</em> wrote:</div> <p>GSSAPI/Kerberos is not configured on the server. </p></div> <div class="quote-msg"> <div class="quote-author"><em>badlop</em> wrote:</div> <p>But did you enable it in the past? Enable in ejabberd.cfg the options override_* </p></div> <p>No, I didn't enable it. It's not clear to me, what to override and how to do it.</p> Tue, 26 Apr 2011 06:46:59 +0000 vasq10 comment 57253 at https://www.ejabberd.im vasq10 wrote: I'm having https://www.ejabberd.im/node/4642#comment-57244 <div class="quote-msg"> <div class="quote-author"><em>vasq10</em> wrote:</div> <p>I'm having problems with authentication: ejabberd (2.1.4 RPM/Centos5) is announcing gssapi and plain for sasl authentication. </p></div> <p>ejabberd 2.1.4 does not support GSSAPI. Maybe you are using a custom version that includes that feature.</p> <div class="quote-msg"> <div class="quote-author"><em>vasq10</em> wrote:</div> <p>GSSAPI/Kerberos is not configured on the server. </p></div> <p>But did you enable it in the past? Enable in ejabberd.cfg the options override_*</p> <div class="quote-msg"> <div class="quote-author"><em>vasq10</em> wrote:</div> <p>(Smack fails if the first mechanism doesn't work :/ ) </p></div> <p>Oh.</p> <div class="quote-msg"> <div class="quote-author"><em>vasq10</em> wrote:</div> <p>Can I change the configuration so that ejabberd doesn't advertise GSSAPI? </p></div> <p>Try to delete or rename the file cyrsasl_gssapi.beam</p> Fri, 22 Apr 2011 19:09:34 +0000 mfoss comment 57244 at https://www.ejabberd.im