mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Additions made to the script inorder to avoid VM login using "saved_password" string
This commit is contained in:
parent
b9646afd48
commit
3b2d4c3fb5
@ -25,12 +25,12 @@ do
|
||||
then
|
||||
logger -t "cloud" "Found password server IP $PASSWORD_SERVER_IP in $DHCP_FILE"
|
||||
logger -t "cloud" "Sending request to password server at $PASSWORD_SERVER_IP"
|
||||
password=$(wget -t 3 -T 20 -O - --header "DomU_Request: send_my_password" $PASSWORD_SERVER_IP:8080)
|
||||
password=$(wget -q -t 3 -T 20 -O - --header "DomU_Request: send_my_password" $PASSWORD_SERVER_IP:8080)
|
||||
|
||||
if [ $? -eq 0 ]
|
||||
then
|
||||
logger -t "cloud" "Got response from server at $PASSWORD_SERVER_IP"
|
||||
|
||||
password=$(echo $password | tr -d '\r')
|
||||
case $password in
|
||||
|
||||
"") logger -t "cloud" "Password server at $PASSWORD_SERVER_IP did not have any password for the VM"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user