[L8-problem solved] Wrong credentials are causing ErrorException

Hi,

when you enter wrong credentials at WUI login
you’re thrown to the " Whoops, looks like something went wrong. Check your librenms.log."-page.

No hint is given on “wrong credentials” until you hit the -button of your browser.

Tested with chrome and firefox.

Blockquote
====================================
Component | Version
--------- | -------
LibreNMS | 1.43-92-ge81a1fc
DB Schema | 267
PHP | 7.1.21
MySQL | 5.5.60-MariaDB
RRDTool | 1.4.8
SNMP | NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct

Can somebody please confirm?

Thank you!

Best regards,
-awaum

What auth method? Mine just says “Invalid Credentials”

Perhaps post the error message from librenms.log?

sorry for leaving this out.

$config[‘auth_mechanism’] = “active_directory”;

We’re using LDAP over TLS.

The messages are here:
https://p.libren.ms/view/0d0b8968

There are about a hundred posts about that here.

Run ./validate.php and fix the given issues.

Hi Murrant,

thank you for your reply!

Sorry for wasting your time by ignoring problems reported by ./validate.php
I will never do this again! (promised!)

Guys,

I was igoring these warning lines ./validate.phhp reported:

[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove
Modified Files:
includes/definitions/sonicwall.yaml
mibs/sonicwall/SONICWALL-FIREWALL-IP-STATISTICS-MIB
mibs/sonicwall/SONICWALL-SMI

These did not look important to me and not relevant to the problem I observed.

However, actually these did prevent (parts) of automatic updates!

./scripts/github-remove -d

fixed the issue, then ran

→ ./daily.sh

Now the “BUG” reported above is gone!
I’m telling this to other “ignorant guys” like me :slight_smile:

Thank you!