summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2025-04-11 11:24:53 +0200
committertv <tv@krebsco.de>2025-04-11 11:24:53 +0200
commit5270ee41ddd0406e8233a4d91b55c63dfd41eac5 (patch)
treef2bf01fad48b62a40221f0fd92b112535a27ac09
parentab31e9d73959509147672f139e3942db1cad7a80 (diff)
fix typo in LDAPPASSWD
-rw-r--r--request_cert.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/request_cert.sh b/request_cert.sh
index 5446362..2e7b636 100644
--- a/request_cert.sh
+++ b/request_cert.sh
@@ -20,8 +20,8 @@ CERT_VAULT_URL=${CERT_VAULT_URL-https://vault.dings:8200}
# Unless a vault token is already provided by the user, fetch a token using LDAP credentials
if [ -z "${VAULT_TOKEN-}" ]; then
read -p USER: LDAPUSER
- read -s -p PASSWORD: LPDAPASSWD
- login_request_data=$(jq -c -n --arg password "$LDAPUSER" '{$password}'
+ read -s -p PASSWORD: LDAPPASSWD
+ login_request_data=$(jq -c -n --arg password "$LDAPPASSWD" '{$password}'
login_response_data=$(curl -Ssf -H "Content-Type: application/json" -d "$login_request_data" "$AUTH_VAULT_URL/v1/auth/ldap/login/$LDAPUSER")
VAULT_TOKEN=$(echo "$login_response_data" | jq -r ".auth.client_token")
echo $VAULT_TOKEN