New Question

Revision history [back]

click to hide/show revision 1
initial version

password in user-data vs password plugin

Hi Cloudbase team,

Wonder if you can help us figure out how to give users the option set a password via user-data. Currently CBI is setting a random password and posting encrypted to OpenStack metadata which is all well and good. However some users would like to set a password through user-data and it always seems to end up the random password instead. Possibly this is because SetUserPasswordPlugin is running after UserDataPlugin? For example, passing a script like this:

ps1

net user Administrator mySecurePassword net user anotheradmin mySecurePassword create a file somewhere

ends up with Administrator having a random (but retrievable) password, another admin having mySecurePassword (great) and some file created so we know the script is running OK.

We thought the random password would be overridden by user data but are not seeing that behavior. Any tips to give users a choice?

thanks you for any help! Ben

click to hide/show revision 2
None

password in user-data vs password plugin

Hi Cloudbase team,

Wonder if you can help us figure out how to give users the option set a password via user-data. Currently CBI is setting a random password and posting encrypted to OpenStack metadata which is all well and good. However some users would like to set a password through user-data and it always seems to end up the random password instead. Possibly this is because SetUserPasswordPlugin is running after UserDataPlugin? For example, passing a script like this:

ps1

#ps1
net user Administrator mySecurePassword
net user anotheradmin mySecurePassword
create a file somewhere

somewhere

ends up with Administrator having a random (but retrievable) password, another admin having mySecurePassword (great) and some file created so we know the script is running OK.

We thought the random password would be overridden by user data but are not seeing that behavior. Any tips to give users a choice?

thanks you for any help! Ben