diff options
author | Ricardo Pescuma Domenecci <ricardo@pescuma.org> | 2017-01-13 14:12:30 -0200 |
---|---|---|
committer | Ricardo Pescuma Domenecci <ricardo@pescuma.org> | 2017-01-13 15:15:00 -0200 |
commit | 43904cae774d95d354dbccff7cfede63c9aac1ae (patch) | |
tree | 70ec20d1f4a1fb45bdf2b868d30ed3742b66bcda /lib/chef/util | |
parent | bb70d7919eba05693bcc4a161503bae52255aa91 (diff) | |
download | chef-43904cae774d95d354dbccff7cfede63c9aac1ae.tar.gz |
Fix for creating users in non english windows machines: uses SID instead of name to identify Users group
Signed-off-by: Ricardo Pescuma Domenecci <ricardo@pescuma.org>
Diffstat (limited to 'lib/chef/util')
-rw-r--r-- | lib/chef/util/windows/net_user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/util/windows/net_user.rb b/lib/chef/util/windows/net_user.rb index 009252c4c1..6758474ecf 100644 --- a/lib/chef/util/windows/net_user.rb +++ b/lib/chef/util/windows/net_user.rb @@ -116,7 +116,7 @@ class Chef::Util::Windows::NetUser < Chef::Util::Windows def add(args) transformed_args = transform_usri3(args) NetUser.net_user_add_l3(nil, transformed_args) - NetUser.net_local_group_add_member(nil, "Users", args[:name]) + NetUser.net_local_group_add_member(nil, Chef::ReservedNames::Win32::Security::SID.BuiltinUsers.account_simple_name, args[:name]) end # FIXME: yard with @yield |