Closing connection due to error while processing message: <auth
xmlns=‘urn:ietf:params:xml:ns:xmpp-sasl’
mechanism=‘NTLM’>TlRMTVNTUAABAAAAB7IIogUABQAsAAAABAAEACgAAAAFA SgKAAAAD1NXQU5QQVBJUg==</auth> java.lang.NullPointerExceptio n at org.jivesoftware.openfire.net.SASLAuthentication.handle(SASLAuthentication.java :230) at org.jivesoftware.openfire.net.StanzaHandler.process(StanzaHandler.java:147) at org.jivesoftware.openfire.nio.ConnectionHandler.messageReceived(ConnectionHandl er.java:132) at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived (AbstractIoFilterChain.java:570) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648) at org.apache.mina.filter.codec.support.SimpleProtocolDecoderOutput.flush(SimplePr otocolDecoderOutput.java:58) at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecF ilter.java:180) at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(Ab stractIoFilterChain.java:299) at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilt erChain.java:53) at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceive d(AbstractIoFilterChain.java:648) at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java :239) at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(Execut orFilter.java:283) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:51) at java.lang.Thread.run(Unknown Source)
Good catch! For Openfire 3.5.0 the way SASL works was modified to follow more the Java style. That means that Norman’s code would need to be modified to provide an NTLM SaslServer. I don’t think it’s going to be much work to implement it the new way. Let me know if you need any help getting this change done.
So it works when you run the .exe but not the .bat? It sounds like your PATH or CLASSPATH isn’t correct then.
…
Kerbeos is part of Java (not Openfire), for some reason Sun decided not to implement NTLM in Java for windows. That is exactly what the ntlm provider is. It plugs the gap where Sun have not written code. The Openfire plugin is tiny and just to enable unsupported mechanisms.