AnsweredAssumed Answered

Smack login with md5 hashed password to Openfire

Question asked by yetisenersin on Sep 15, 2014
Latest reply on Sep 16, 2014 by Flow

How can I login with MD5 hashed password to openfire?

I'm using smack 4.0.4.

I've tried DIGEST-MD5 registiration but it's not work

SASLAuthentication.registerSASLMechanism("DIGEST-MD5", SASLDigestMD5Mechanism.class); SASLAuthentication.supportSASLMechanism("DIGEST-MD5");

I'm getting this error :

SASLError using PLAIN: not-authorized

My code looks like this:

config = new ConnectionConfiguration(xmppServerAddress, Integer.parseInt(xmppServerPort));

config.setDebuggerEnabled(true);

config.setReconnectionAllowed(true);

config.setSecurityMode(ConnectionConfiguration.SecurityMode.disabled);

XMPPTCPConnection connectionTmp = new XMPPTCPConnection(config);

connectionTmp.connect(); 

connectionTmp.login("username","md5hashedpassword");

Outcomes