Skip to content

Commit

Permalink
CASMNET-2241 - Resolve external DNS test fails with port present in U…
Browse files Browse the repository at this point in the history
…RL (#614)

CASMNET-2241 - Resolve external DNS test fails with port present in UR
  • Loading branch information
spillerc-hpe authored Oct 30, 2024
1 parent d81ca10 commit baf7b52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ echo "CONNECTION_URLS=${CONNECTION_URLS}"
[[ -n ${CONNECTION_URLS} ]] ||
err_exit 90 "LDAP provider is configured, but the connectionURL is missing from LDAP configuration."

FIRST_URL=$(echo "${CONNECTION_URLS}" | grep -Eo '//[^, /]+' | head -1 | tr -d /) ||
FIRST_URL=$(echo "${CONNECTION_URLS}" | awk -F[/:] '{print $4}') ||
err_exit 100 "No recognizable URLs found in LDAP connectionURL list"

echo "FIRST_URL=${FIRST_URL}"
Expand Down

0 comments on commit baf7b52

Please sign in to comment.