123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- name: Samba Kerberos SSO
- on:
- push:
- branches:
- - master
- - stable*
- paths:
- - 'apps/files_external/**'
- - '.github/workflows/smb-kerberos.yml'
- pull_request:
- paths:
- - 'apps/files_external/**'
- - '.github/workflows/smb-kerberos.yml'
- jobs:
- smb-kerberos-tests:
- runs-on: ubuntu-latest
- if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
- steps:
- - name: Checkout server
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- with:
- submodules: true
- - name: Checkout user_saml
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- with:
- repository: nextcloud/user_saml
- path: apps/user_saml
- - name: Pull images
- run: |
- docker pull ghcr.io/icewind1991/samba-krb-test-dc
- docker pull ghcr.io/icewind1991/samba-krb-test-apache
- docker pull ghcr.io/icewind1991/samba-krb-test-client
- docker tag ghcr.io/icewind1991/samba-krb-test-dc icewind1991/samba-krb-test-dc
- docker tag ghcr.io/icewind1991/samba-krb-test-apache icewind1991/samba-krb-test-apache
- docker tag ghcr.io/icewind1991/samba-krb-test-client icewind1991/samba-krb-test-client
- - 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
- echo "DC_IP=$DC_IP" >> $GITHUB_ENV
- - name: Set up Nextcloud
- run: |
- apps/files_external/tests/sso-setup/setup-sso-nc.sh
- - name: Test SSO
- run: |
- apps/files_external/tests/sso-setup/test-sso-smb.sh ${{ env.DC_IP }}
- - name: Show logs
- if: failure()
- run: |
- FILEPATH=$(docker exec --user 33 apache ./occ log:file | grep "Log file:" | cut -d' ' -f3)
- echo "$FILEPATH:"
- docker exec --user 33 apache cat $FILEPATH
- smb-kerberos-session-tests:
- runs-on: ubuntu-latest
- if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
- steps:
- - name: Checkout server
- uses: actions/checkout@v3
- with:
- submodules: true
- - name: Checkout user_saml
- uses: actions/checkout@v3
- with:
- repository: nextcloud/user_saml
- path: apps/user_saml
- - name: Pull images
- run: |
- docker pull ghcr.io/icewind1991/samba-krb-test-dc
- docker pull ghcr.io/icewind1991/samba-krb-test-apache
- docker pull ghcr.io/icewind1991/samba-krb-test-client
- docker tag ghcr.io/icewind1991/samba-krb-test-dc icewind1991/samba-krb-test-dc
- docker tag ghcr.io/icewind1991/samba-krb-test-apache icewind1991/samba-krb-test-apache
- docker tag ghcr.io/icewind1991/samba-krb-test-client icewind1991/samba-krb-test-client
- - 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
- run: |
- apps/files_external/tests/sso-setup/setup-sso-nc.sh smb::kerberos_sso_session
- - name: Test SSO
- run: |
- apps/files_external/tests/sso-setup/test-sso-smb-session.sh ${{ env.DC_IP }}
- - name: Show logs
- if: failure()
- run: |
- FILEPATH=$(docker exec --user 33 apache ./occ log:file | grep "Log file:" | cut -d' ' -f3)
- echo "$FILEPATH:"
- docker exec --user 33 apache cat $FILEPATH
- smb-kerberos-database-tests:
- runs-on: ubuntu-latest
- if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
- steps:
- - name: Checkout server
- uses: actions/checkout@v3
- with:
- submodules: true
- - name: Checkout user_saml
- uses: actions/checkout@v3
- with:
- repository: nextcloud/user_saml
- path: apps/user_saml
- - name: Pull images
- run: |
- docker pull ghcr.io/icewind1991/samba-krb-test-dc
- docker pull ghcr.io/icewind1991/samba-krb-test-apache
- docker pull ghcr.io/icewind1991/samba-krb-test-client
- docker tag ghcr.io/icewind1991/samba-krb-test-dc icewind1991/samba-krb-test-dc
- docker tag ghcr.io/icewind1991/samba-krb-test-apache icewind1991/samba-krb-test-apache
- docker tag ghcr.io/icewind1991/samba-krb-test-client icewind1991/samba-krb-test-client
- - 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
- run: |
- apps/files_external/tests/sso-setup/setup-sso-nc.sh smb::kerberos_sso_database
- - name: Test SSO
- run: |
- apps/files_external/tests/sso-setup/test-sso-smb-session.sh ${{ env.DC_IP }}
- - name: Show logs
- if: failure()
- run: |
- FILEPATH=$(docker exec --user 33 apache ./occ log:file | grep "Log file:" | cut -d' ' -f3)
- echo "$FILEPATH:"
- docker exec --user 33 apache cat $FILEPATH
|