[jdev] Smack and local OpenFire - unable to login

Daniel Dormont dan at greywallsoftware.com
Fri Sep 16 18:43:33 UTC 2011


What is the XMPP domain you've configured in OpenFire? Is it really
"localhost"? If not, you need to use a ConnectionConfiguration:

ConnectionConfiguration conf = new ConnectionConfiguration("localhost",
5222, myXmppDomain);
Connection connection = new XMPPConnection(conf);
connection.login("test", "azer");

dan


On Thu, Sep 15, 2011 at 6:35 PM, damien <dawadam at gmail.com> wrote:

> Hello, I develop with Smack and OpenFire server locally.
> I can not I log on, i have this error:
> "SASL DIGEST-MD5 authentication failed: not-authorized"
> I looked on the web offered the tips, but none work with.
> My code:
>                        Connection connection = new
> XMPPConnection("localhost");
>                        connection.connect();
>
>                        // config.setSASLAuthenticationEnabled(false);
>                        // SASLAuthentication.supportSASLMechanism("PLAIN",
> 0);
>
>                        connection.login("test", "azer");
> _______________________________________________
> JDev mailing list
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20110916/688978fc/attachment.htm>


More information about the JDev mailing list