Files
Cactidocumentation/Settings-Auth-Basic.md
T
Thomas Vincent c4be40ab53 docs(settings): [1.2.x] correct settings, authentication and user management pages against the source (#265)
* docs(settings): [1.2.x] correct settings pages against the source

Align setting names, options, defaults and descriptions on the General, Paths, Device Defaults, Poller, Data, Visual, Performance, Spikes and Mail/Reporting/DNS pages with include/global_settings.php on 1.2.x.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(auth): [1.2.x] correct authentication settings pages against the source

Align option labels and the Basic Auth mapfile behavior with include/global_settings.php and lib/auth.php on 1.2.x.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(users): [1.2.x] correct user, log, utilities and navigation pages against the source

Align menu paths, form labels, permission models, log filters and utilities entries with the 1.2.x source.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(settings): [1.2.x] correct the authentication class count on the Settings page

include/global_arrays.php defines four authentication methods.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(settings): [1.2.x] fix the PNG and SVG expansions on the General page

The page expanded PNG as Petri Net Graphs and SVG as Scalable Vector Graphs. The source only has the labels PNG and SVG.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

* docs(settings): [1.2.x] document settings missing from the pages

Add entries from include/global_settings.php, links.php and utilities.php on 1.2.x.

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>

---------

Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
2026-11-23 15:12:12 -05:00

59 lines
2.6 KiB
Markdown

# Basic Authentication
## Overview
Basic Auth settings leverage both Apache's and NGINX Authentication modules
to grant a user access to the Cacti Website. The various configuration steps
for these modules will not be covered in the Cacti documentation. Therefore,
if you wish to use this authentication method, it is recommended that
you test your configuration on a development server before putting this
method into production.
> **NOTE**: Before enabling the **Basic Authentication Method**, you must
> always verify that you are prompted for a password before getting the
> normal Cacti login prompt, and that you have setup a new user account
> with Admin privileges that matches your login account. Otherwise
> when you enable Basic Authentication, you can lock yourself out of the
> Cacti Website.
## Special Users
The image below shows the settings for **Web Basic Authentication** which
includes the `Special Users` sub-section.
![Basic Auth Settings](images/settings-auth-basic.png)
Those settings include:
- **Primary Admin** - This is the Cacti primary administrative account
this account will receive Cacti notifications and can not be deleted.
- **Guest User** - This is a special account that allows users to
access certain pages without being prompted for a login and password.
Setting to `None`, disables this feature.
- **User Template** - All new users who login for the first time will
have their initial settings based upon this **User Template**.
- **Basic Auth Login Failure Message** - This textbox can be customized
in order to provide a useful message to users who have no access to
Cacti via Basic Authentication and how to resolve the issue.
- **Basic Auth Mapfile** - If your basic users do not match OS users
you can force a basic account to login with an alternate account.
## Basic Auth Mapfile
This settings is important for plugins that grant certain features
to accounts, but those accounts do not match the login account. For
example, your basic account maybe: joe.schmoe@company.com, and your
UNIX login account may be `jschmoe`, which grants you certain
plugin permissions, like controlling your own workload.
The mapfile is a file in CSV format, with the first column
being the Basic account (aka `joe.schmoe`), and the second
column being the login account (jschmoe). When the Basic account
includes a domain, as in `joe.schmoe@company.com`, Cacti removes the
`@company.com` part before it searches the first column. It is up-to the Cacti
administrator to manage and update this file per their local
site practices.
---
Copyright (c) 2004-2026 The Cacti Group