Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
[Solved] Bug? Nginx reverse proxy basic auth
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] Bug? Nginx reverse proxy basic auth (Read 5380 times)
Dgd
Newbie
Posts: 2
Karma: 0
[Solved] Bug? Nginx reverse proxy basic auth
«
on:
August 04, 2022, 02:54:03 pm »
Hi
with the opnsense version "OPNsense 22.7_4-amd64" I can't create users for basic auth for a Nginx reverse proxy configuration (with Opnsense versions 22.1x all works fine). Here some details: On the GUI and within config.xml all looks fine, but the users won't created within /var/db/nginx/auth (the file will be created, but without users).
For trouble shooting I started the following script manually: /usr/local/opnsense/scripts/nginx/setup.php
Output:
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('PASSWORD')
#1 {main}
thrown in /usr/local/opnsense/scripts/nginx/setup.php on line 231
It seems that the PHP crypt function now needs two arguments mandatory.
regards
giancarlo
«
Last Edit: August 04, 2022, 06:18:11 pm by Dgd
»
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: Bug? Nginx reverse proxy basic auth
«
Reply #1 on:
August 04, 2022, 05:49:04 pm »
hi
https://www.reddit.com/r/opnsense/comments/wa6xil/comment/iifo8oe/?context=3
?
Logged
Dgd
Newbie
Posts: 2
Karma: 0
Re: Bug? Nginx reverse proxy basic auth
«
Reply #2 on:
August 04, 2022, 06:16:13 pm »
Thanks, the patch works.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
22.7 Legacy Series
»
[Solved] Bug? Nginx reverse proxy basic auth