cloudbase / cloudbase-init

Cross-platform instance initialization
http://openstack.org
Apache License 2.0
427 stars 150 forks source link

Raise max password length #114

Open ChandonPierre opened 1 year ago

ChandonPierre commented 1 year ago

Maximum password length appears to be hardcoded to 20:

https://github.com/cloudbase/cloudbase-init/blob/912eea88ed13fdb8abf62e4b455e19a18c21df81/cloudbaseinit/osutils/windows.py#L1697-L1698

Modern/currently supported versions of Windows should be able to accept password lengths of 128 characters.

daevski commented 7 months ago

yeah, what is going on here??? This is not correct and needs to be updated! Thanks for creating this issue @ChandonPierre.

Workaround for now, set a 30 char password and then after build change it what you really need.