mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #43303 from nextcloud/backport/43296/stable27
[stable27] fix kerberos test successfull authentication detection
This commit is contained in:
commit
75329bdf70
2 changed files with 4 additions and 3 deletions
2
.github/workflows/smb-kerberos.yml
vendored
2
.github/workflows/smb-kerberos.yml
vendored
|
|
@ -30,7 +30,7 @@ jobs:
|
|||
with:
|
||||
repository: nextcloud/user_saml
|
||||
path: apps/user_saml
|
||||
ref: stable27
|
||||
ref: stable-5.2
|
||||
- name: Pull images
|
||||
run: |
|
||||
docker pull ghcr.io/icewind1991/samba-krb-test-dc
|
||||
|
|
|
|||
|
|
@ -5,8 +5,9 @@ DC_IP="$1"
|
|||
SCRIPT_DIR="${0%/*}"
|
||||
|
||||
echo -n "Checking that we can authenticate using kerberos: "
|
||||
LOGIN_CONTENT=$("$SCRIPT_DIR/client-cmd.sh" $DC_IP curl -i -s --negotiate -u testuser@DOMAIN.TEST: --delegation always http://httpd.domain.test/index.php/apps/user_saml/saml/login?originalUrl=success)
|
||||
if [[ "$LOGIN_CONTENT" =~ "Location: success" ]]; then
|
||||
LOGIN_CONTENT=$("$SCRIPT_DIR/client-cmd.sh" $DC_IP curl -i -s --negotiate -u testuser@DOMAIN.TEST: --delegation always http://httpd.domain.test/index.php/apps/user_saml/saml/login?originalUrl=http://localhost/success)
|
||||
|
||||
if [[ "$LOGIN_CONTENT" =~ "Location: http://localhost/success" ]]; then
|
||||
echo "✔️"
|
||||
else
|
||||
echo "❌"
|
||||
|
|
|
|||
Loading…
Reference in a new issue