powered by Jive Software

Several people with one account?

Hi,

I’m working on a multiuserchat with openfire as server, and Java app (with smack librairy) as client.

My aim is that someone can start the chat, just enter a nickname and could chat with other user.

I’ve created a chatroom with openfire.

But in my java app, I have to connect with a login and a password, to join the room. I tried to connect with the same user but doesn’t work…

How can I do my app so that openfire or smack does’nt require any login?

Thank you very much

up, please help me

Openfire doesn’t support to join a Multi-User Chat rooms multiple times with one JID, maybe http://www.igniterealtime.org/community/message/99033, http://xmpp.org/extensions/xep-0175.html or http://www.igniterealtime.org/community/message/191207#191207 can be useful for you?

Yes in part…

I’ve read your url, but finally, I would like to create some User of openfire from my Java app.

With only a nickname, I could create the user with “nickname” as login and “nickname” as password, and then connect …

(and destruct the user when the program ends…) It’s not very clean but I have not a lot of time…

Thank you!

Regards

please, it’s urgent…

Sorry, I don’t understand your problem. I think I already wrote that XMPP (XEP-0045) and especially Openfire don’t support to join a chat room with one JID and several nicknames. If you don’t want to use SASL ANONYMOUS (Openfire Settings, and org.jivesoftware.smack.sasl.SASLAnonymous ) maybe your problem is to create and delete users? Then have a look in org.jivesoftware.openfire.user.UserManager or Inband Registration. You maybe want to create a user nick@domain.lt and join a chat room@conference.domain.lt with nick as the users nickname.

I’ve wrote just a very simple client connecting to my Openfire server with SASL Anonymous (without username, password) and join a multi-user chat. Please make sure that “Anonymous Login” is enabled in Openfire. Hopefully this helps to answer your question.
Main.java (858 Bytes)

Thank you, and sorry for my bad english, I’m french, and I’m a student beginning with Openfire…

In fact, this line missed me: con.getSASLAuthentication().authenticateAnonymously();

I’ll try as soon as possible, and I tell you if it’s ok…

Thank you, again

Regards