I’ve just updated to version 4.1.0 of Smack and I now get this error when trying to login:
org.jivesoftware.smack.sasl.SASLErrorException: SASLError using DIGEST-MD5: not-authorized
at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthenticati on.java:365)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:1033)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPCon nection.java:937)
at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:952)
new XMPPTCPConnection (XmppStringUtils.escapeLocalpart ("email@example.com"),
I’ve also tried with using the builder for the connection but get the same error.
I have the following jars in the classpath and am using Java 7:
I’m trying to connect to an Openfire server (under my control) running 3.9.3.
This worked fine with 4.0.4 of Smack. The user account has been setup correctly in Openfire and the password is correct. Everything was running smoothly with version 4.0.4.
On the server the “xmpp.domain” setting is “www.myhost.com”.
I have a RSA CA signed certificate setup for “www.myhost.com” (not the real domain btw) in Openfire. However I do not have a DSA one setup (Openfire offers to set one up for me).
Can anyone point out what I’m doing wrong and/or missing?