Cannot Login via Spark

I’‘m able to see all my user from AD on the wildfire server, but if I try to log in as one of those user I get invalid username or password. i’‘m user the password that was set in AD… i’'m I missing something? Below is a copy of my spark error log file…

(401)

at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:94)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:430)

at com.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:586)

at com.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:179)

at com.jivesoftware.LoginDialog$3.construct(LoginDialog.java:492)

at com.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:121)

at java.lang.Thread.run(Unknown Source)

javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.BufferedReader.read1(Unknown Source)

at java.io.BufferedReader.read(Unknown Source)

at org.jivesoftware.smack.util.ObservableReader.read(ObservableReader.java:42)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2947)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:2996)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1409)

at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1394)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1092)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:377)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)

Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)

at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(Unknown Source)

at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(Unknown Source)

at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(Unknown Source)

at sun.nio.cs.StreamEncoder.flush(Unknown Source)

at java.io.OutputStreamWriter.flush(Unknown Source)

at java.io.BufferedWriter.flush(Unknown Source)

at org.jivesoftware.smack.util.ObservableWriter.flush(ObservableWriter.java:48)

at org.jivesoftware.smack.PacketWriter$KeepAliveTask.run(PacketWriter.java:439)

at java.lang.Thread.run(Unknown Source)

Caused by: java.io.EOFException: SSL peer shut down incorrectly

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

… 13 more

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:166)

at org.jivesoftware.smack.XMPPConnection.init(XMPPConnection.java:874)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:293)

at org.jivesoftware.smack.XMPPConnection.(SSLXMPPConnection.java:92)

at com.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:570)

at com.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:179)

at com.jivesoftware.LoginDialog$3.construct(LoginDialog.java:492)

at com.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:121)

at java.lang.Thread.run(Unknown Source)

Hi,

I see a lot of SSLHandshakeException’‘s in your posted log file. So I think it’'s not a password but an SSL issue. Did you change the SSL certificates or are using SSL instead of TLS?

Is it possible for you to disable TLS and SSL in Wifi ( /ssl-settings.jsp , Client Connection Security , Custom, 2x Not Available ) to try it with plain authentication?

LG

I set everything to plain authentication and still no go…below is a copy of the log file

stream:error (text)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:315)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)

No response from the server.:

at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:58)

at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:430)

at com.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:586)

at com.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:179)

at com.jivesoftware.LoginDialog$3.construct(LoginDialog.java:492)

at com.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:121)

at java.lang.Thread.run(Unknown Source)

Hi,

do you see something in the error and debug log of the server? I just want to make sure that you are connecting to the right server. You should see a “Connection closed before session established” and maybe also a NonSASL error.

LG

I don’‘t see any connection errors on the server. My user name is “chatuser@domain.local”, password, Server is “chatserver.domain.local”. Also, in the advance setting I set the Host manually to the IP of my chatsever… The error message i get is "Can’'t connect to server; invalid name or server not reachable"

Hi,

Your username should be “username@chatserver.domain.local” if “chatserver.domain.local” is your server name.

Does “chatserver.domain.local” and “domain.local” resolve to the same IP address?

Do you have the option to use another client?

LG

username: chatuser@chatserver.domain.local

Password: chatuser password

Server: should this be the chatserver information or my domain information being that i’'m using LDAP?

Also, On the admin console, I’'m all to see all my AD users, is there any special setting on the admin console that needs to be changed to allow the authentication to happen?

in Spark in username field i enter only pre @ part of username

Username: wroot

Password: ***

Server: server

if i try putting wroot@server in username field i get an error. So maybe you should try this form.

And if this doesnt help try putting your IP instead of server’'s name in Server field.

I tried that, and still didn’'t work… “Cannot connect to server:invalid name or server not reachable”. At this point I have installed the chat client on the chat server to eliminate any connectivity issue, but still not able to login.

can you tell us the username? Maybe it contains some uncommon characters?

All is okay. I decided to reboot the server. After that I was able to login. I didn’'t change any setting. Thanks for you help