I am trying to get remote authentication run.
For testing purposes I just added
<Location />
RequestHeader set REMOTE_USER "admin"
</Location>
to my apache configuration. I created some small php page which is displaying, that the REMOTE_USER RequestHeader is filled with "admin", which will result in a page like:
Code: Select all
Host: my.domain
Connection: keep-alive
sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="90", "Google Chrome";v="90"
sec-ch-ua-mobile: ?0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Cookie: ZMSESSID=jboduse5qjv9jti3v11ud9g7m2
REMOTE_USER: admin
What did I missed?
In future I try to connect my Azure AD with apache auth_mod_mellon and use the SAML claim with username mapping to Zoneminder.