[chef] Re: Re: Using shadow password on Windows


Chronological Thread 
  • From: Andrea Cappelli < >
  • To:
  • Subject: [chef] Re: Re: Using shadow password on Windows
  • Date: Mon, 10 Jun 2013 18:30:04 +0200

Il 10/06/2013 18:04, Daniel DeLeo ha scritto:
The ruby-shadow gem is for managing the /etc/shadow file on Unix machines.

Uhm, ok, so i misunderstood the documentation.

So the right question is: how can i set a password for a windws user knowing only the hash?

If i do

user "test"
    password "$1$wCpUAC5P$NiLw8nU0NjBahe0UPOSo5/"
end

on a linux box the user test gets the password "test", in windows it gets the password $1$wCpUAC5P$NiLw8nU0NjBahe0UPOSo5/

I (wrongly) supposed that with ruby-shadow gem I would obtain the same result in both environment

Chef should not be hitting the code path that requires ruby-shadow on Windows. Can you post the error message you get, an example of cookbook code that causes this, and the output of `ohai platform`?

I have no error message, ohai platform returns
[
  'windows'
]

Thanks



Archive powered by MHonArc 2.6.16.

§