Setting local Windows user's password

Last I checked in on this about a year ago, it was not possible to set a
Windows user’s password via Chef unless the password was stored in
cleartext.

Does anyone know if this is still the case?

I was working on this issue this morning only. The way I do it is by storing the password in an encrypted data bag and then decrypt it during compile time:

Retrieving local admin password at compile

secret = Chef::EncryptedDataBagItem.load_secret(secret_file_path)
app_local_admin_pass = Chef::EncryptedDataBagItem.load(node[‘databag_name’], “app_local_admin_pass”, secret)
node.default[‘temp_app_pass’] = app_local_admin_pass[“pass”]

Then use User resource:

user “CounselingAdmin” do
password "#{node[‘temp_app_pass’]}"
action :create
end

-Kapil

-----Original Message-----
From: Jeff Blaine [mailto:jblaine@kickflop.net]
Sent: Monday, March 31, 2014 3:43 PM
To: chef@lists.opscode.com
Subject: [chef] Setting local Windows user’s password

Last I checked in on this about a year ago, it was not possible to set a Windows user’s password via Chef unless the password was stored in cleartext.

Does anyone know if this is still the case?


This email and any accompanying documents may contain privileged or otherwise confidential information of, and/or is the property of Education Management Solutions, Inc. If you are not the intended recipient, please immediately advise the sender by reply email & delete the message & any attachments without using, copying or disclosing the contents. Thank you.