allow setting remote_user using an intermediate header

This commit is contained in:
Nicolas Berens 2024-01-22 10:31:06 +01:00
parent c937e99b7e
commit ec09d0f0ac
2 changed files with 5 additions and 0 deletions

View File

@ -55,6 +55,7 @@ COPY php.ini /etc/php/7.4/cli/conf.d/99-docker.ini
RUN ["ln", "-vs", "/usr/share/icingaweb2/bin/icingacli", "/usr/local/bin/"]
RUN ["icingacli", "setup", "config", "webserver", "apache", "--path=/", "--file=/etc/apache2/conf-enabled/icingaweb2.conf"]
RUN echo 'SetEnvIf X-REMOTE-USER "(.*)" REMOTE_USER=$0' > /etc/apache2/conf-enabled/allow-remote-user.conf
USER www-data
ENV ICINGAWEB_OFFICIAL_DOCKER_IMAGE 1

View File

@ -77,6 +77,10 @@ option = value
Consult the [Icinga Web 2 configuration documentation]
on which .ini files there are.
### External authentication
When using `icingaweb.authentication.autologin.backend: external`, the Username needs to be passed in the `X-Remote-User` header.
## Build it yourself
```bash