Entry points > Module Supervisor > Standard script GESUSER 

INIVAR

This entry point is used to define certain values of the specific/custom user parameters when connecting to X3 or when switching user, during the declaration of global variables.

Context and operating mode

This entry point allows to give a value to the global variables depending on the user ID provided to log in.

No mask nor table is on-line.

SCONNECT

The SCONNECT entry point allows to deny a user connection.

Context and operating mode

This entry point is placed immediately after all the access controls (user ID, password) and immediately before the transaction carried out to update the connection flag in the AUTILIS table.
The global variable GUSER is specified.
To prevent the connection, you must set GMENDEP="".

UCONNECT: After the user password control

This entry point allows to enter variables for the connection aborting workflow following the password control.

Context and operating mode

This entry point is located after the user password control if the password is not correct and immediately before the call to the workflow ('CON' type) and the abortion of the connection.

GUSER global variable is entered and GMESSAGE variable contains the control's error message.

DISCONNECT: Disconnecting a user already connected

On a folder managed by a license "named user", if the connection between the client and the server is interrupted, the session can remain active on the server. Then, the user is considered connected and cannot reconnect. In that case, a warning message is displayed "A session is already opened for this user, do you want to stop it?". This message is displayed only if the blocking session comes from the current user and workstation. The current workstation cannot be identified in case of network problems for titles resolution.

This entry point is used to force the disconnection of the session for a user already connected.

Context and operating method

This entry point is situated between the identification of the blocking session and the verification that this session belongs to the current user and workstation (comparison of the adxmac(-2) with the name of the machine returned by the psadx engine without the domain)

In order to force the display of the warning message, GPE must be set to 1

The variables available:

PPRO  Process number - adxuid(1)
PCLI   Name of the machine returned by the psadx
PUSR  User code X3 (GUSER) and Name of the user X3 separated by a space
PMAI   Email address of the user
nomap current folder
adxusr login
GUSER user code X3
adxmac(-2) name of the client machine without the domain name

SETSSOCONNECT: forcing a user connection in SSO mode

This entry point allows to force the identification control of a user in SSO on WEB mode.

Context and operating method

This entry point is integrated after the search for the SSOCONNECT parameter value.

You only need to set the K and SSOTYP variables to 1 in order to force the identification control in the LDAP base.

CHGPASS: Authorizing a user

This entry point is used to authorize a user to connect when his password has expired.
This entry point was required to streamline the management of a generic user used to launch batch tasks.

Context and operating method

This entry point is located in the $VERF_PASSE paragraph if the "CHGPASS" folder general parameter has a value greater than 0 and if the password change date + this value > today's date.

adxusr contains the user login
The [F:AUS] class contains the information of the user who is currently connected 

To authorize a user to connect, you only need to set the GPE variable to a value other than 0.