diff options
author | Robin Appelman <robin@icewind.nl> | 2024-02-02 16:38:56 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2024-02-02 16:38:56 +0100 |
commit | 0492bf5644ec65b4a76d9bf65af711aa6fb9761e (patch) | |
tree | 4efb2cd20522d050c0a84ec922e9cb90995d08cf /apps | |
parent | 20aa86ff31110319f7aed8436c738763d507f0a9 (diff) | |
download | nextcloud-server-0492bf5644ec65b4a76d9bf65af711aa6fb9761e.tar.gz nextcloud-server-0492bf5644ec65b4a76d9bf65af711aa6fb9761e.zip |
fix successfull authentication detection
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/files_external/tests/sso-setup/test-sso-smb.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files_external/tests/sso-setup/test-sso-smb.sh b/apps/files_external/tests/sso-setup/test-sso-smb.sh index b0f0a2c7af9..df0692f4319 100755 --- a/apps/files_external/tests/sso-setup/test-sso-smb.sh +++ b/apps/files_external/tests/sso-setup/test-sso-smb.sh @@ -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 "❌" |