The specific steps I took that caused me to encounter the problem with
authentication:

1. Configure /etc/nagios4/cgi.cfg to use_authentication=1.
2. sudo htpasswd -bmc /etc/apache2/.htpasswd.users admin AdminPassword
3. Copy the following apache2.conf to /etc/nagios4: 
https://docs.google.com/document/d/1BmNal9vzKt0-4LcmuDZeJSx0buA08fkzWEU3idlk7oY/edit?usp=sharing
4. sudo ln -fs /etc/nagios4/apache2.conf 
/etc/apache2/conf-available/nagios-cgi.conf (This symlink is missing and should 
be enabled by default.)
5. sudo systemctl restart apache2
6. Access localhost/nagios4 through a web browser.

I expected a login prompt, but it did not appear.

use_authentication=1 is the default setting for /etc/nagios4/cgi.cfg.
This appears to be broken and set to use_authentication=0 regardless of
the setting.

By the way, I tested this configuration on Ubuntu Server 24.04.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2115003

Title:
  user authentication and symlinks are broken

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nagios4/+bug/2115003/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to