mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
ci fixes
This commit is contained in:
parent
166114582c
commit
70c9f5fc3f
5 changed files with 22 additions and 12 deletions
10
.github/workflows/smb-kerberos.yml
vendored
10
.github/workflows/smb-kerberos.yml
vendored
|
|
@ -18,8 +18,6 @@ jobs:
|
|||
|
||||
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
|
||||
|
||||
name: smb-kerberos-sso
|
||||
|
||||
steps:
|
||||
- name: Checkout server
|
||||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
|
||||
|
|
@ -62,8 +60,6 @@ jobs:
|
|||
|
||||
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
|
||||
|
||||
name: smb-kerberos-sso
|
||||
|
||||
steps:
|
||||
- name: Checkout server
|
||||
uses: actions/checkout@v3
|
||||
|
|
@ -74,7 +70,6 @@ jobs:
|
|||
with:
|
||||
repository: nextcloud/user_saml
|
||||
path: apps/user_saml
|
||||
ref: event-dispatcher
|
||||
- name: Pull images
|
||||
run: |
|
||||
docker pull ghcr.io/icewind1991/samba-krb-test-dc
|
||||
|
|
@ -86,6 +81,7 @@ jobs:
|
|||
- name: Setup AD-DC
|
||||
run: |
|
||||
DC_IP=$(apps/files_external/tests/sso-setup/start-dc.sh)
|
||||
sleep 1
|
||||
apps/files_external/tests/sso-setup/start-apache.sh $DC_IP $PWD -v $PWD/apps/files_external/tests/sso-setup/apache-session.conf:/etc/apache2/sites-enabled/000-default.conf
|
||||
echo "DC_IP=$DC_IP" >> $GITHUB_ENV
|
||||
- name: Set up Nextcloud
|
||||
|
|
@ -106,8 +102,6 @@ jobs:
|
|||
|
||||
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
|
||||
|
||||
name: smb-kerberos-sso
|
||||
|
||||
steps:
|
||||
- name: Checkout server
|
||||
uses: actions/checkout@v3
|
||||
|
|
@ -118,7 +112,6 @@ jobs:
|
|||
with:
|
||||
repository: nextcloud/user_saml
|
||||
path: apps/user_saml
|
||||
ref: event-dispatcher
|
||||
- name: Pull images
|
||||
run: |
|
||||
docker pull ghcr.io/icewind1991/samba-krb-test-dc
|
||||
|
|
@ -130,6 +123,7 @@ jobs:
|
|||
- name: Setup AD-DC
|
||||
run: |
|
||||
DC_IP=$(apps/files_external/tests/sso-setup/start-dc.sh)
|
||||
sleep 1
|
||||
apps/files_external/tests/sso-setup/start-apache.sh $DC_IP $PWD -v $PWD/apps/files_external/tests/sso-setup/apache-session.conf:/etc/apache2/sites-enabled/000-default.conf
|
||||
echo "DC_IP=$DC_IP" >> $GITHUB_ENV
|
||||
- name: Set up Nextcloud
|
||||
|
|
|
|||
|
|
@ -14,6 +14,18 @@
|
|||
require valid-user
|
||||
</Location>
|
||||
|
||||
<Location /index.php>
|
||||
AuthType Kerberos
|
||||
AuthName "Kerberos authenticated intranet"
|
||||
KrbAuthRealms DOMAIN.TEST
|
||||
KrbServiceName HTTP/httpd.domain.test
|
||||
Krb5Keytab /shared/httpd.keytab
|
||||
KrbMethodNegotiate On
|
||||
KrbMethodK5Passwd On
|
||||
KrbSaveCredentials On
|
||||
require valid-user
|
||||
</Location>
|
||||
|
||||
ErrorLog /shared/apache-error.log
|
||||
CustomLog /shared/apache-access.log combined
|
||||
</VirtualHost>
|
||||
|
|
|
|||
|
|
@ -3,8 +3,8 @@ set -e
|
|||
|
||||
SCRIPT_DIR="${0%/*}"
|
||||
|
||||
DC_IP=$(apps/files_external/tests/sso-setup/start-dc.sh)
|
||||
apps/files_external/tests/sso-setup/start-apache.sh "$DC_IP" "$PWD" -v "$PWD/$SCRIPT_DIR"/apache-session.conf:/etc/apache2/sites-enabled/000-default.conf
|
||||
apps/files_external/tests/sso-setup/setup-sso-nc.sh smb::kerberos_sso_session
|
||||
DC_IP=$("$SCRIPT_DIR"/start-dc.sh)
|
||||
"$SCRIPT_DIR"/start-apache.sh "$DC_IP" "$PWD" -v "$PWD/$SCRIPT_DIR"/apache-session.conf:/etc/apache2/sites-enabled/000-default.conf
|
||||
"$SCRIPT_DIR"/setup-sso-nc.sh smb::kerberos_sso_session
|
||||
|
||||
apps/files_external/tests/sso-setup/test-sso-smb-session.sh "$DC_IP"
|
||||
"$SCRIPT_DIR"/test-sso-smb-session.sh "$DC_IP"
|
||||
|
|
|
|||
|
|
@ -27,4 +27,6 @@ docker run -dit --name dc -v /tmp/shared:/shared --hostname krb.domain.test --ca
|
|||
|
||||
waitContainer dc
|
||||
|
||||
sleep 5
|
||||
|
||||
docker inspect dc --format '{{.NetworkSettings.IPAddress}}'
|
||||
|
|
|
|||
|
|
@ -13,6 +13,8 @@ else
|
|||
exit 1
|
||||
fi
|
||||
|
||||
"$SCRIPT_DIR/client-cmd.sh" "$DC_IP" curl -s -b /shared/cookie -c /shared/cookie --negotiate -u testuser@DOMAIN.TEST: --delegation always http://httpd.domain.test/index.php
|
||||
|
||||
echo -n "Getting test with session file: "
|
||||
CONTENT=$("$SCRIPT_DIR/client-cmd.sh" "$DC_IP" curl -s -b /shared/cookie 'http://httpd.domain.test/remote.php/webdav/smb/test.txt?XDEBUG_SESSION_START=1')
|
||||
CONTENT=$(echo "$CONTENT" | head -n 1 | tr -d '[:space:]')
|
||||
|
|
|
|||
Loading…
Reference in a new issue