Increase maximum resource count per user ?

Hey guys,

I recently installed ejabberd 2.0.5 on a debian lenny server. Everything works fine except that I cannot log in a single user for more than 5 resources on the same account. Is this a predefined limit ? Can I change this via config file ?

Yes, check the option

Yes, check the option max_user_sessions in the ejabberd Guide:
http://svn.process-one.net/ejabberd/tags/ejabberd-2.0.5/doc/guide.html#c...

Maybe in your ejabberd.cfg it was by default 5. Edit the config file and restart ejabberd.

Thanks for your input.

Thanks for your input. Unfortunately the entry is set to its default value of '10'. Even raising it to '20' made no difference.

Are you sure option is changed? What happens when 6th connects?

Quote:

Thanks for your input. Unfortunately the entry is set to its default value of '10'. Even raising it to '20' made no difference.

I've tested ejabberd 2.0.5 compiled from source code. I can login more than 5 sessions. Then in the WebAdmin page http://localhost:5280/admin/server/localhost/user/badlop/ I can see:

Recursos conectados:

    * work1 (127.0.0.1:53723)
    * work2 (127.0.0.1:53718)
    * work3 (127.0.0.1:53720)
    * work4 (127.0.0.1:53719)
    * work5 (127.0.0.1:53721)
    * work6 (127.0.0.1:37036)

What happens exactly, when you connect the sixth client?

When I am connected with 10 clients and then connect with another one to resource work11, the oldest session receives this XMPP stanza and the session is closed:

<stream:error>
  <conflict xmlns='urn:ietf:params:xml:ns:xmpp-streams'/>
  <text xml:lang='es'
	xmlns='urn:ietf:params:xml:ns:xmpp-streams'>Reemplazado por una nueva conexión
</stream:error>

Are you sure the option is 10, or 20? You can go to WebAdmin http://localhost:5280/admin/access/ and you should see among many other Access rules this one:

max_user_sessions	[{10,all}]

First of all, thanks for your

First of all, thanks for your help.

I found out that the issue is not a faulty ejabberd configuration but something else. I don't understand at all why this is happening:
I am using a shell script called "sendxmpp" to connect to my ejabberd server. The first five connections work just fine, but the sixth doesn't work anymore when I don't escape "#" or "!" in my password. I don't know why, but with escaping those characters it works fine up until the max_user_sessions setting.

Thanks again, have a nice day.

Syndicate content