powered by Jive Software

Using SMACK with 1und1 account


I’ tried to connect to an 1und1-account (german service provider) using the smack library but can’t authenticate. I use the following code, with

port=5222 and serviceURL=jabber.1und1.de

ConnectionConfiguration config = new ConnectionConfiguration(serviceURL, port);
XMPPConnection connection = new XMPPConnection(config);
try {
} catch (XMPPException ex) {
Logger.getLogger(Xmpp.class.getName()).log(Level.SEVERE, null, ex);

according to my logs, this works, but I get an except. when I try the login:

try {
SASLAuthentication.supportSASLMechanism(“PLAIN”, 0);
connection.login(this.username, this.password, “FooBar”);

} catch (XMPPException ex) {
Logger.getLogger(Xmpp.class.getName()).log(Level.SEVERE, null, ex);

The Exception look like this:

20.04.2010 15:01:35 org.krischer.lecturate.service.Xmpp run
SASL authentication failed using mechanism PLAIN:
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 325)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:395)
at org.krischer.lecturate.service.Xmpp.run(Xmpp.java:105)
at java.lang.Thread.run(Thread.java:619)

I’d tried the same code with a @jabber.org account and it works and i can proceed with the roster-management, but I don’t know how to get possible options I need for the 1und1 Server and how to get them “on-the-fly” if the user decide to use whatever-account. I also tried a quick login to the account with meebo.com and it works there too, so the account is ok. Any Ideas where to start?

PS: posting a new thread here is impossible with opera10.10/linux, the editor is not loaded after typing the headline…