mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
modify user password update script for theHive, keep it in consistency with Fleet counterpart.
This commit is contained in:
@@ -49,9 +49,9 @@ fi
|
||||
# Change password for user in TheHive
|
||||
resp=$(curl -sk -XPOST -H "Authorization: Bearer $THEHIVE_KEY" -H "Content-Type: application/json" -L "https://$THEHVIE_API_URL/user/${THEHIVE_USER}/password/set" -d "{\"password\" : \"$THEHIVE_PASS\"}")
|
||||
if [[ -z "$resp" ]]; then
|
||||
echo "Successfully changed TheHive user password"
|
||||
echo "Successfully updated TheHive user password"
|
||||
else
|
||||
echo "Changing TheHive user password failed"
|
||||
echo "Unable to update TheHive user password"
|
||||
echo $resp
|
||||
exit 2
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user