mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
fix successfull authentication detection
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
2072d73156
commit
60c0233f62
1 changed files with 3 additions and 2 deletions
|
|
@ -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