Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
nginx and autodiscover basic authentication on upsream server
« previous
next »
Print
Pages: [
1
]
Author
Topic: nginx and autodiscover basic authentication on upsream server (Read 5617 times)
Tubs
Full Member
Posts: 100
Karma: 3
nginx and autodiscover basic authentication on upsream server
«
on:
June 02, 2019, 02:27:29 pm »
Hello,
somehow my Exchange autodiscover does not work behind nginx as revers proxy. When I connect directly to the server it works. But behind OPNsense with nginx as reverse proxy autodiscover will end up in http 401 error.
Unfortunately, I don't see anything in the logs that gives me a hint were to search.
Basically, I am fine with either basic authentication pass through or authentication by OPNsense to LDAP server. Whatever is running is fine.
The rest like activesync and owa is running through opnsense.
Any idea where to search?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: nginx and autodiscover basic authentication on upsream server
«
Reply #1 on:
June 02, 2019, 03:52:19 pm »
401 means "authentication required" so you enforce authentication on an URL and the client does not provide it.
Logged
Tubs
Full Member
Posts: 100
Karma: 3
Re: nginx and autodiscover basic authentication on upsream server
«
Reply #2 on:
June 03, 2019, 02:09:16 pm »
Yes, that's the point. Maybe my explanation was not clear.
But the authentication error is caused by nginx not forwarding credentials correctly.
(I assume nginx is doing what it is supposed to do by the actual settings. But this is not what I want)
I am testing by web browser by opening autodiscover xml file manually
https://autodiscover.xxxx.xxx/Autodiscover/Autodiscover.xml
In case of direct access by internal LAN address:
Browser authentication windows open, enter credentials, expected xml response comes
In case of access via external address through nginx reverse proxy
Browser authentication windows open, enter credentials, authentication windows ask again for credentials.
In case of access through Microsoft Autodiscover test page I see more details: error 401
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: nginx and autodiscover basic authentication on upsream server
«
Reply #3 on:
June 03, 2019, 07:31:19 pm »
Hast du dir das schon angeschaut, vielleicht hat der ein Problem mit dem default realm etc.
https://stackoverflow.com/questions/14839712/nginx-reverse-proxy-passthrough-basic-authenication
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.1 Legacy Series
»
nginx and autodiscover basic authentication on upsream server