Chapter Contents
Elektron can authentication users by calling an external script or other executable. The authentication decision is based on the exit code returned by the script: zero indicates that the user authenticated successfully, a non-zero result indicates that the authentication failed
Script Configuration
There are three configuration options when selecting a script to use for authentication:
Script Path
The full path to the script to be executed. Elektron will also accept a path relative the the Elektron server executable, but for security purposes you should always provide a full path.
Arguments
You may optionally provide command line arguments that will be passed to the script when it is executed.
Run With Administrator Privileges
By default, Elektron will execute your authentication script using an unprivileged user account. If your script needs to access privileged resources, you may enable this option.
Script Environment
Elektron sets several environment variables when executing your script to allow the script to perform its duties:
ELEKTRON_AUTHENTICATION_TYPE Will be set to “PLAIN”
ELEKTRON_USER The username that was provided with the login
ELEKTRON_PASSWORD The password that was provided with the login
