Cloud Server Registrations

From Lianjapedia
Jump to: navigation, search

Overview

From Lianja v8.0 the Lianja Cloud Server can be configured to allow users to register in a tenancy.

Access the login page as usual, then click Register:

Cloud Server Registrations


Note: for Linux and macOS, make sure the DB_WWWDEFAULT environment variable is set to "login.rsp". On Windows, this is specified in the Default Page in the HTTP_Settings.

Complete the registration form:

Cloud Server Registrations


Notes

  • The cell/mobile number should include the international dialing code and omit any trunk/routing prefix, e.g. '0' for UK numbers.
  • When a user has an email address associated with their account and two factor authentication (2FA) is enabled on the Lianja Cloud Server, the user will be sent a one-time passcode (OTP) to complete their login. For more details, see One-Time Passcode Two Factor Authentication.

Enabling User Registration

Windows

On Windows, check the Enable registrations setting in the Lianja Server Manager Security tab:

Security tab

The Lianja Server will restart to apply the setting.

Linux and macOS

Include the following environment variable setting in the Lianja Server configuration file on Linux or macOS:

DB_REGISTRATION_ENABLED=ON

Default User Roles

Self-registering users will, by default, be given the role 'public'. Apps to be accessed by these users should include this role or * (all) roles.

To specify an alternative role or roles to be given to self-registering users, set the DB_REGISTRATION_ROLES system environment variable (all supported platforms), e.g.

DB_REGISTRATION_ROLES=news,events,general

Note: on Windows, DB_REGISTRATION_ROLES can alternatively be defined as a string value in the Registry under the 'Netserver' Key Name with the value data specified as a comma-separated string as above.

Windows 64-bit:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lianja\Lianja Server\Netserver\DB_REGISTRATION_ROLES

Windows 32-bit:

HKEY_LOCAL_MACHINE\SOFTWARE\Lianja\Lianja Server\Netserver\DB_REGISTRATION_ROLES

See Also

Cross Platform App Deployment, Customizing the Login Page, Database Tenancies, Lianja Cloud Admin Console, Lianja Server Manager on Linux, Lianja Server Manager on Mac, Lianja Server Manager on Windows, Sysroles System Table, Users and Roles, USERDOMAIN(), USEREMAIL(), USERNAME(), USERROLES(), USERTENANCY()