how to let ejabberd only access register from one special server?

I have a web site use xmpphp as client connect to ejabberd. I want users can only register ejabberd account via my site.How can I correcly configure the ejabberd? what access_from attribute do?

Re: how to let ejabberd only access register from one

bbsqbbsq wrote:

I have a web site use xmpphp as client connect to ejabberd. I want users can only register ejabberd account via my site.How can I correcly configure the ejabberd? what access_from attribute do?

access_from actually only controls if it is possible to register new accounts using *existing* c2s session (i.e. from already registered account) or from s2s. This is mostly backward-compatibility option. So this option doesn't help you.

thanks,Is there any way to

thanks,Is there any way to get my idea come true?

bbsqbbsq wrote: I want users

bbsqbbsq wrote:

I want users can only register ejabberd account via my site.

Configure mod_register to not allow account registrations.

Then implement in your website a web formulary: when a user wants to register an account, your PHP page calls the system shell "ejabberdctl register tommy jabber.example.com soMEPAss12345".

If you prefer to use XMLRPC to register account in ejabberd, install ejabberd_xmlrpc. If you prefer to use HTTP, install mod_rest.

If you prefer that ejabberd offers a simple web registration page, install mod_register_web

Syndicate content