Hi,

Currently, you can only change the length of the generated password for VMs by 
setting the global setting ‘vm.password.length’.

The current password generation algorithm does consider using alpha-numeric 
characters but no special characters, here it the password generator utility 
used which can be easily replaced or improved:
https://github.com/apache/cloudstack/blob/master/utils/src/main/java/com/cloud/utils/PasswordGenerator.java#L40

For the default length=6, the password would satisfy the regex - 
[a-z][A-Z][0-9][a-z]*

Prior to 4.5, the password server was a socat+bash based program which would 
save the VM password in /var/cache/cloud/passwords file and I think introducing 
special characters such as $, %, # etc could have caused some password serving 
and setup issue. Starting 4.5.1+, the new Python based password server can 
definitely handle special characters, though we would need to verify is the old 
reset password scripts would work with password strings with special characters.

If you think we should consider improving the generator logic to include 
special characters etc, you can open a ticket on ACS JIRA.

On 02-Sep-2015, at 4:12 pm, Octavian Popescu 
<[email protected]<mailto:[email protected]>> wrote:

Hi,

Is there any way to change the policy for the passwords generated for new VMs? 
For instance, increasing the length, defining a mix of special and alphanumeric 
characters etc.

Thanks,
Octavian


Regards,
Rohit Yadav
Software Architect, ShapeBlue


[cid:9DD97B41-04C5-45F0-92A7-951F3E962F7A]


M. +91 88 262 30892 | 
[email protected]<mailto:[email protected]>
Blog: bhaisaab.org<http://bhaisaab.org> | Twitter: @_bhaisaab




Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software 
Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure 
Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.

Reply via email to