Http_auth_guest is not set

I am trying to get Librenms to work with Oauth2-proxy but no matter what I try I get an error that “http_auth_guest is not set”
Librenms Info:

Component Version
LibreNMS 21.3.0-64-g339227280
DB Schema 2021_03_26_014054_change_cache_to_mediumtext (206)
PHP 7.3.27-9+ubuntu18.04.1+deb.sury.org+1
Python 3.6.9
MySQL 10.3.23-MariaDB-log
RRDTool 1.7.0
SNMP NET-SNMP 5.7.3

====================================

I have set the following in my config:

<?php
## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php!

### Database config
$config['db_host'] = 'XXXXXXXX';
$config['db_port'] = '3306';
$config['db_user'] = 'admin';
$config['db_pass'] = 'XXXXXXX';
$config['db_name'] = 'librenms';
$config['db_socket'] = '';

// This is the user LibreNMS will run as
//Please ensure this user is created and has the correct permissions to your install
$config['user'] = 'librenms';

### Locations - it is recommended to keep the default
#$config['install_dir']  = "/opt/librenms";

### This should *only* be set if you want to *force* a particular hostname/port
### It will prevent the web interface being usable form any other hostname
#$config['base_url']        = "https://librenms.s.mgmt.site";

### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir
### and that your web server has permission to talk to rrdcached.
#$config['rrdcached']    = "unix:/var/run/rrdcached.sock";

### Default community
$config['snmp']['community'] = array("XXXXXX");

### Authentication Model
$config['auth_mechanism'] = "http-auth";
$config['http_auth_guest'] = "guest";


### List of RFC1918 networks to allow scanning-based discovery
$config['nets'][] = "10.0.0.0/8";
$config['nets'][] = "172.16.0.0/12";
$config['nets'][] = "192.168.0.0/16";

#Disable Unused Modules
$config['poller_modules']['ospf'] = 0;
$config['enable_syslog'] = 1;
$config['syslog_purge'] = 30;
##################################

Running the auth test always fails with same error
root@ip-10-242-66-184:/opt/librenms/scripts# ./auth_test.php -u guest
Authentication Method: http-auth
Password:
Authenticate user guest:
Error: LibreNMS\Exceptions\AuthenticationException thrown!
No matching user found and http_auth_guest is not set

Is the http_auth_guest setting broken?

Bump, Anyone else here using http_auth?

This topic was automatically closed 186 days after the last reply. New replies are no longer allowed.