Problems with OpenStack Windows mirroring password injection

Source: Internet
Author: User

Image making process online a lot of

The problem is that you can inject the password via Cloudinit, but after injection you will be prompted to change the password for the first time, and Google doesn't seem to have encountered this problem, first look at Group Policy, there is no similar option in Group Policy

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/87/C4/wKioL1fhQWejizKnAAbFbWp6AVY640.png-wh_500x0-wm_3 -wmp_4-s_1057321055.png "title=" capture. PNG "alt=" Wkiol1fhqwejizknaabfbwp6avy640.png-wh_50 "/>

View Source code

setuserpassword.py


def _change_logon_behaviour (self, username, password_injected=false):

"" "Post Set Password logic


If the option is activated, the

Password at next logon.

"""

if Conf.first_logon_behaviour = = Never_change:

Return


Clear_text = Conf.first_logon_behaviour = = Clear_text_injected_only

always = Conf.first_logon_behaviour = = Always_change

If always or (Clear_text and password_injected):

Osutils = Osutils_factory.get_os_utils ()

Osutils.change_password_next_logon (username)

Know the solution

Either add First_logon_behaviour = Never_change in the cloud.conf


or modify the code directly.





OpenStack Windows mirroring password injection issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.