You are here

LDAP Authentication Error

3 posts / 0 new
Last post
Gary Burch
gb.opsview's picture
LDAP Authentication Error

Does anybody have any idea what the following error message refers to?

Use of uninitialized value $host in substitution (s///) at /usr/local/nagios/perl/lib/Net/ line 153.

Expected 'PeerHost' at /usr/local/nagios/perl/lib/Net/ line 160.

The error shows up when I'm trying to test my LDAP connection by running /usr/local/nagios/bin/opsview_sync_ldap -t

I'm trying to set up LDAP Authentication on my Atom Virtual Appliance.  It's only been up a couple of days, I've not modified the file it's referring to.

Duncan Ferguson
dferguson's picture
I would guess this is due to

I would guess this is due to the format of the opsview_web_local.yml file that contains the ldap config is wrong, indenting with tabs rather than spaces or similar.

Please use 'cat -vet opsview_web_local.yml' if you have changed this file and see if you can spot any problems with formatting.  Compare with 'opsview_web.yml' which should not be changed from installation.


Gary Burch
gb.opsview's picture
This is resolved now, I'd

This is resolved now, I'd accidentally put a capital A in authentication on the first line.

Many thanks