Skip to content

fixes for midpoint #52

Merged
merged 1 commit into from
Dec 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Workbench/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ services:

midpoint_server:
build: ./midpoint_server/
command: /usr/local/bin/startup.sh
depends_on:
- midpoint_data
ports:
Expand Down
8 changes: 5 additions & 3 deletions Workbench/midpoint_server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ COPY container_files/mp-home/ ${MP_DIR}/var/

#Shibb SP
COPY container_files/shibboleth/ /etc/shibboleth/
COPY container_files/httpd/shib.conf /etc/httpd/conf.d
COPY container_files/httpd/00-shib.conf /etc/httpd/conf.modules.d/
COPY container_files/httpd/midpoint-shib.conf /etc/httpd/conf.d/
COPY container_files/httpd/vhosts.conf /etc/httpd/conf.d/vhosts/

#set dynamic hostname
COPY container_files/system/setservername.sh /usr/local/bin/
RUN chmod 755 /usr/local/bin/setservername.sh
#set hostname
RUN /usr/local/bin/setservername.sh

COPY container_files/supervisor/supervisord.conf /etc/supervisor/
#COPY container_files/supervisor/supervisord.conf /etc/supervisor/

#set shib auth in apache
RUN mv /etc/httpd/conf.d/midpoint.conf /etc/httpd/conf.d/midpoint.conf.default && mv /etc/httpd/conf.d/midpoint.conf.auth.shibboleth /etc/httpd/conf.d/midpoint.conf
#RUN mv /etc/httpd/conf.d/midpoint.conf /etc/httpd/conf.d/midpoint.conf.default && mv /etc/httpd/conf.d/midpoint.conf.auth.shibboleth /etc/httpd/conf.d/midpoint.conf
4 changes: 4 additions & 0 deletions Workbench/midpoint_server/container_files/httpd/00-shib.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# Load the Shibboleth module.
#
LoadModule mod_shib /usr/lib64/shibboleth/mod_shib_24.so
17 changes: 17 additions & 0 deletions Workbench/midpoint_server/container_files/httpd/midpoint-shib.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
RequestHeader unset Authorization

<Location /midpoint/auth/shib>
AuthType shibboleth
ShibRequestSetting requireSession 1
ShibRequireSession on
ShibUseHeaders On
require shibboleth
</Location>

<Location />
AuthType shibboleth
ShibRequestSetting requireSession false
ShibUseHeaders On
require shibboleth
</Location>

58 changes: 0 additions & 58 deletions Workbench/midpoint_server/container_files/httpd/shib.conf

This file was deleted.

3 changes: 3 additions & 0 deletions Workbench/midpoint_server/container_files/httpd/vhosts.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#for midpoint
RewriteRule "^/midpoint/$" "/midpoint/auth/shib" [R]

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<httpHeader>
<name>httpHeader</name>
<logoutUrl>https://__CSPHOSTNAME__/MPSSO/Shibboleth.sso/Logout</logoutUrl>
<usernameHeader>uid</usernameHeader>
<usernameHeader>REMOTE_USER</usernameHeader>
</httpHeader>
</modules>
<sequence>
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion Workbench/webproxy/container_files/httpd/proxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ ProxyPass /registry https://comanage/registry
ProxyPass /registrySSO https://comanage/registrySSO
#ProxyPassReverse /comanage https://comanage/

ProxyPass /wordpress http://wordpress_server/
ProxyPass /wordpress http://wordpress_server/ nocanon
ProxyPassReverse /wordpress http://wordpress_server/
ProxyPass /wp-includes http://wordpress_server/wp-includes
ProxyPassReverse /wp-includes http://wordpress_server/wp-includes
Expand Down