I have installed the openfire server and it works great. I have a java application which uses the smack and smackx library to connect to my server using port 5222 which also works great.
I would like to set the server to disallow new account creation. I want my application to be the only entity that can register new accounts.
When I set "Inband Account Registration" to "Disabled", my smack application can no longer crate users on the system. I have even set the user I login with as an administrator, but still no luck. I am using this code:
ConnectionConfiguration config = new ConnectionConfiguration(credentials.getServerUrl(), credentials.getServerPort(), credentials.getService());
connection = new XMPPConnection(config);
AccountManager am = new AccountManager(connection);
am.createAccount( username, password );
Which java library do I need to use to allow my application to create new users while keeping "Inband Account Registration" disabled? Also which port will this library use?