Server certificate and limitation of client connection

Hi all,

I am using Openfire 3.6.2 version.I have two questions.

  1. How can I set limit of client connection to server?

  2. I am developing own client xmpp, so I would like server only accept my client and regard other clients want to login.

Best regards,

Hi Javanesevn,

To answer you questions:

  1. How can I set limit of client connection to server?

There is no way to do this with Openfire out-of-box but it would be possible to write a plugin that limits the number of users that can be connected at any one time.

  1. I am developing own client xmpp, so I would like server only accept my client and regard other clients want to login.

Take a look at the Client Control plugin which allows you specify which clients are allowed to connect.

Hope that helps,

Ryan

Thank you for your reminder about this plugin. I thought this plugin focus on Spark only.

To permitted client I only set **other.clients.allowed **property. This value is resource part in full JID, isn’t it?

I could not find full documentation related to server property. This link is not enough info http://www.igniterealtime.org/community/docs/DOC-1061

I wonder that why server is not enabled to limit client connection via simple system properties.

To permitted client I only set other.clients.allowed property. This value is resource part in full JID, isn’t it

No, it’s actually a bit more sophisticated that than, it uses XEP-0092 to check the name of the client.

I wonder that why server is not enabled to limit client connection via simple system properties.

People are usually looking to increase the number of users they can support, not limit it. Typically if people want to control the users that can access their Openfire installation they’ll turn off Inband Account Registration or use LDAP to prevent users from creating

new accounts.

Cheers,

Ryan

I have a little confuse about permitted client feature. If clients have not been implemented XEP-0092, so clients didn’t send any query jabber:iq:version. How can server validate it?

Thanks

I can’t say for certain since I haven’t tried it but I would think that if the client doesn’t support XEP-0092 then a user trying to connect with that client wouldn’t be allowed to sign in even if that client was listed as a “permitted client” in the plugin.

Regards,

Ryan

Thank you Ryan,

Client doesn’t support XEP-0092 be able to login to server in normally.