How do I enable client-side registration?

How do I enable Openfire to use Jabber’s “register this account with the server” feature?

I want new users to be able to create a new account from within the PSI jabber client.

As long as the server is not using LDAP you should be able to use any XMPP client to register new accounts.

AdminConsole:

Server -> Server Settings -> Registration & Login -> Inband Account Registration

But this should be enabled by default.

hey how this can be achived through code , is there any smack api available by which we can do the registration.