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 <[email protected]> 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: [email protected]
> _______________________________________________
>
_______________________________________________
JDev mailing list
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________

Reply via email to