Merge pull request #118 from nicolasberens/bugfix/allow_remote_user_117

allow setting remote_user using an intermediate header
This commit is contained in:
Eric Lippmann 2024-02-28 10:37:37 +01:00 committed by GitHub
commit 60579f5c9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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