NGinx Basic/Advanced Http Authorization

Started by tgoldenbaum, February 16, 2021, 03:19:07 PM

Previous topic - Next topic
Hello Forum,

I have the following problem: I want to enable https authentication, so that the browser displays a login prompt before loading the website. I want to check against an AD Server I provided to opnsense under system->access->servers.

in Nginx:
I enabled advanced ACL at the http location entry, and at the http server->Advanced ACL Authentication Backend i put in the installed AD server

it worked, the browser displayed the login prompt, users could check with their AD credentials and after that the website was loaded.

Then it stopped working. I can not tell you what i did in the meantime, I did not update, but worked on some other issues on the nginx, which had nothing to do with it.
The website is loading fine, but the authorization prompt before that is still missing.

Do you have an idea what happened, what I can do?



February 18, 2021, 09:42:09 AM #2 Last Edit: February 18, 2021, 09:53:43 AM by tgoldenbaum
Yes, that did the trick. You have to set (under Advanced Mode on) Satisfy All on the location, not the HTTPS Server. Now its working, thank you very much.

best regards
Thomas Goldenbaum

yes, that's how 'satisfy' directive works (you set IP ACL. and if IP ACL match with satisfy=any there is no need to auth)
glad it works )