]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix successfull authentication detection 43296/head
authorRobin Appelman <robin@icewind.nl>
Fri, 2 Feb 2024 15:38:56 +0000 (16:38 +0100)
committerRobin Appelman <robin@icewind.nl>
Fri, 2 Feb 2024 15:38:56 +0000 (16:38 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/tests/sso-setup/test-sso-smb.sh

index b0f0a2c7af92f0ac2793144f7c32d698f0ca5b53..df0692f4319ae8831665c7971a79ca2a88b9de4f 100755 (executable)
@@ -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 "❌"