OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: fred.bloggs on August 07, 2022, 12:17:30 am

Title: [SOLVED ]Bug in nginx plugin version 1.28_2 on OPNsense 22.7_4
Post by: fred.bloggs on August 07, 2022, 12:17:30 am
Hi, I think there is a bug with the nginx plugin version 1.28_2 on OPNsense 22.7_4. (updated from 22.1.10_4).

I have "Basic Authentication" enabled on a "location" and assigned  a "Basic Credentials List". When accessing the URL the basic auth form pops up and credentials can be entered. But even when entering correct credentioals, the popup reappears.

In this moment a system firmware error is thrown:
---
PHP Fatal error:  Uncaught ArgumentCountError: crypt() expects exactly 2 arguments, 1 given in /usr/local/opnsense/scripts/nginx/setup.php:231
Stack trace:
#0 /usr/local/opnsense/scripts/nginx/setup.php(231): crypt('<here goes the password>')
#1 {main}
  thrown in /usr/local/opnsense/scripts/nginx/setup.php on line 231
 ---

At the same time also nginx reports an error:
---
*18413 user "<here goes the user name>" was not found in "/var/db/nginx/auth/d0c4603...
---

Maybe someone can look into this. Thanks.


Title: Re: Bug in nginx plugin version 1.28_2 on OPNsense 22.7_4
Post by: Fright on August 07, 2022, 09:36:19 am
https://forum.opnsense.org/index.php?topic=29682.0
Title: Re: [SOLVED ]Bug in nginx plugin version 1.28_2 on OPNsense 22.7_4
Post by: fred.bloggs on August 07, 2022, 09:38:26 am
Thank you!

via console: "opnsense-patch -c plugins cc0605386cc" solved it