Hi,
I am trying to create an XMPP connection using the smack API. How do I use the windows active dir support for creating the connection and then logging in?
Any code snippets would be useful.
I am currently doing this:
XMPPConnection conn1 = new XMPPConnection(“foo.com”);
conn1.login("foo@bar.com", “”, “AIMTest”, false);
After i get the connection, it shows in the debug that it is connected. As soon as I do the login bit, here is the stack trace:
stream:error (text)
at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:320)
at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)
at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:63)
java.lang.IllegalStateException: Not connected to server.
at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:699)
at org.jivesoftware.smack.NonSASLAuthentication.authenticate(NonSASLAuthentication .java:54)
at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 213)
at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:426)
…
Thanks,
Bharat