Skip to content

Commit 75329bd

Browse files
Merge pull request #43303 from nextcloud/backport/43296/stable27
[stable27] fix kerberos test successfull authentication detection
2 parents d3252ca + bfe2cd3 commit 75329bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/smb-kerberos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
repository: nextcloud/user_saml
3232
path: apps/user_saml
33-
ref: stable27
33+
ref: stable-5.2
3434
- name: Pull images
3535
run: |
3636
docker pull ghcr.io/icewind1991/samba-krb-test-dc

apps/files_external/tests/sso-setup/test-sso-smb.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ DC_IP="$1"
55
SCRIPT_DIR="${0%/*}"
66

77
echo -n "Checking that we can authenticate using kerberos: "
8-
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)
9-
if [[ "$LOGIN_CONTENT" =~ "Location: success" ]]; then
8+
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)
9+
10+
if [[ "$LOGIN_CONTENT" =~ "Location: http://localhost/success" ]]; then
1011
echo "✔️"
1112
else
1213
echo ""

0 commit comments

Comments
 (0)