The following configuration options are available under config/authentication.php:
AUTH_ENABLED
Enable or disable user authentication. If disabled, no login is prompted to access the GUI and all features will be available (admin privs).
Possible values: "0", "1" Default value: "0"
AUTH_TYPE
How to authenticate, if authentication is enabled.
Possible values: "file" - authenticate using a textfile with "user::pass" pairs "ldap" - authenticate using an LDAP server "ad_ldap" - authenticate using an Active Directory LDAP server "sql" - authenticate using an SQL database Default value: "file"
AUTH_METHOD
Select the login authentication method.
Possible values: "login" - authenticate using the ordinary NConf login form "basic" - authenticate using HTTP Basic Authentication (pop-up window for username/password) Default value: "login"
Using HTTP Basic Auth can be useful if you want users to only authenticate once for both NConf and Nagios.
BASICAUTH_REALM
The HTTP Basic Auth Realm to display when using auth method “basic”.
Possible value: "your text" Default value: "NConf Basic Auth"
AUTH_FEEDBACK_AS_WELCOME_NAME
This defines the user name in the history table and in the welcome message.
Possible values: "0", "1" Default value: "0"
If set to “0”, the username will be used. If set to “1”, the real name will be fetched, depending on which AUTH_TYPE you selected.
LOG_REMOTE_IP_HISTORY
Enable / disable logging of the remote-IP / hostname to the history.
If set to “1”, the remote-IP is written to the history after a user logs in.
In case “HostnameLookups” is set to On in the apache config, the hostname will be used instead.
Possible values: "0", "1" Default value: "1"
When NConf parses the output from one of the authentication modules, it will look for this pattern to determine if an account should be regarded as an ordinary user.
Default value: "user"
When NConf parses the output from one of the authentication modules, it will look for this pattern to determine if an account should be regarded as an admin account.
Default value: "admin"
Do not change this
Default value: "0"