Skip to content

Commit

Permalink
Merge pull request #118 from nicolasberens/bugfix/allow_remote_user_117
Browse files Browse the repository at this point in the history
allow setting remote_user using an intermediate header
  • Loading branch information
lippserd authored Feb 28, 2024
2 parents fcd9060 + ec09d0f commit 60579f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60579f5

Please sign in to comment.