The following configuration items set up and manage Liberator'sthat are used to authenticate Liberator users and permission them.
For background information, see the Liberator Features and Concepts page about User authentication and permissioning.
auth-node-eject-timeout is a timeout in seconds that applies to the checking of permissions when a user (client) contributes (publishes) data to Liberator.
The auth module checks each contribution request to ensure that the attempt to create an object, or write to it, is permitted. If the auth module has to obtain this authorization from a remote service (for example a database or a remote server), it may not be able to respond to the authorization request immediately, so the module returns an AuthenticationResult.DELAYED status to the Liberator that called it. When the Liberator receives this status, it waits auth-checkwrite-timeout seconds for the final authorization supplied in a callback from the auth module. If the result isn't received within this time, Liberator abandons the contribution and sends a failure code back to the requesting client.
Default value: 30.0 seconds
auth-eject-users determines Liberator’s behaviour when a user login limit is exceeded.
Liberator imposes limits on the number of users who can be logged in at any one time. This may be through the setting of max-user-limit, or the limits are more likely determined by the Liberator licence (for more about this, see the document Caplin Platform: Guide to User Licensing). auth-eject-users determines Liberator's behaviour when a user login limit is exceeded:
- When auth-eject-users is FALSE, Liberator rejects any further attempts to log in.
- When auth-eject-users is TRUE, Liberator allows a new user to log in by first ejecting the oldest existing user session that matches the username and application-id of the new user. If there's no match on username and application-id, Liberator attempts a match on username alone. If the Liberator's in a cluster, it looks at all the Liberators in the cluster for a matching session to eject.
Also see auth-node-eject-timeout
Default value: FALSE
auth-login-timeout specifies the period in seconds for which Liberator waits for the auth module to authenticate a user's login attempt.
- If you implement your own auth module using the Liberator Authentication C SDK, this the period for which Liberator waits for the authentication result when the auth_new_user() function has returned the status AUTH_DELAYED.
- If you implement your own auth module using the Liberator Authentication Java SDK, this is the period for which Liberator waits for your implementation of DelayedResultReceiver to return the authentication result when the initial return value from an authentication check was AuthenticationResult.DELAYED.
Default value: 30 seconds
auth-map-timeout specifies the period in seconds for which Liberator waits for the auth module to map an object.
- If you implement your own auth module using the Liberator Authentication C SDK, this the period for which Liberator waits for the authentication result when the auth_map_object() function has returned the status AUTH_DELAYED.
- If you implement your own auth module using the Liberator Authentication Java SDK, this is the period for which Liberator waits for the your implementation of DelayedResultReceiver to return the authentication result when the return value from a call to Authenticator.mapObject()was AuthenticationResult.DELAYED.
Default value: 30 seconds
auth-moddir specifies the directory (as an absolute or relative path) from where Liberator's auth modules are loaded. The directory path can contain the parameters
%a At run time,
%r is replaced by the root directory (application-root) under which Liberator runs, and
%a is replaced by Liberator's application-name.
Default value: %r/lib which, by default, translates to <Liberators-current-working-directory>/lib
Also see auth-module.
auth-module specifies the name of the auth module to be loaded into Liberator at startup.
Default value: xmlauth
Also see auth-moddir.
auth-node-eject-timeout specifies the timeout in seconds on the response to a request to eject a user session within a Liberator cluster.
When auth-eject-users is TRUE in a cluster of Liberators and a new login request would exceed the maximum permitted number of logins across the whole cluster, the Liberator dealing with the new login request selects an existing session for that user to eject from one of the other Liberators. It sends an eject-session request to the other Liberator and waits for a "user ejected" response before allowing the new login. However, if no response is received within auth-node-eject-timeout seconds (for example, because of a communication delay on the network connecting the two Liberators), the new login is allowed anyway.
Default value: 10.0 seconds
max-user-limit specifies the maximum number of users who can log in to the Liberator.
You can use max-user-limit to set a limit on the number of user logins that's less than the licence allows if desired.
The configuration item auth-eject-users determines Liberator’s behaviour when a user login limit is exceeded.
Default value: 0 (no limit on the number of logged-in users)
max-user-ok specifies the number of users at which a message is written to the event log confirming that the number of logged-in users has dropped to an acceptable level. A message is only logged if a warning about the number of users has previously been logged (see max-user-warn).
0 if max-user-warn is 0 (no message is ever logged)
90% of max-user-warn if max-user-warn is not 0
max-user-warn specifies the number of users at which a warning is written to the event log about the number of logged-in users approaching the maximum allowed (set by max-user-limit). Once a warning has been logged, the number of users must drop below the level set by max-user-ok before a warning can be logged again.
Default value: 0 (no warning is logged)
write-users-period specifies the interval in seconds at which statistics about the currently logged in users are written to the in-memory UUPP licence usage database. The statistics are first written at write-users-time, and then every write-users-period thereafter.
Default value: 3600 seconds (= 1 hour)
write-users-time specifies the time in minutes from midnight at which statistics about the currently logged in users are first written to the in-memory UUPP licence usage database. Subsequent writes are at write-users-period intervals.
If write-users-time is greater than 1440 (24 hours), the first statistics write time is taken from the start of the week (midnight on Sunday night). For example, a value of 1460 sets the first write time to 00:20 hrs on Monday.
Default value: -1 seconds (which means write the statistics as soon as the Liberator has started up, and every write-users-period seconds thereafter)