LAMS 2 supports users being able to create accounts for themselves through a web service. This means that a 3rd party web service client must be created as a front end to this web service (such as the one at http://demo.lamscommunity.org). This wiki documents how to enable this on the LAMS side. It is disabled by default.
Enable the self registration web service in LAMS 2
Edit the file $JBOSS_HOME/server/default/deploy/lams.ear/lams-central.war/WEB-INF/server-config.wsdd. Scroll down to the RegisterService section (as below).
Uncomment this block by making it look like this:
You may need to restart LAMS for this to take effect.
Add an entry in the list of integrated servers
Login as a sysadmin, and go to System Administration; click 'Maintain integrated servers'. Create a new entry. Remember the server id and key. A prefix and userinfo url are required, but for the purposes of the RegisterService, they aren't used. So you can put in any dummy value.
That's it on the LAMS side; LAMS is now ready to accept requests from a web service client for users to create accounts for themselves.