summaryrefslogtreecommitdiff
path: root/lib/chef/win32/security
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-03-21 08:29:22 +0000
committerGitHub <noreply@github.com>2017-03-21 08:29:22 +0000
commitc9aceb575404fbdde99ec3bec969e1ee97bca68b (patch)
treec236806b60dea06ff77761f099765efdb99e9876 /lib/chef/win32/security
parent577689941fad549b51506268387d8686cf92b876 (diff)
parent43904cae774d95d354dbccff7cfede63c9aac1ae (diff)
downloadchef-c9aceb575404fbdde99ec3bec969e1ee97bca68b.tar.gz
Merge pull request #5725 from pescuma/master
Fix for creating users in non english windows machines
Diffstat (limited to 'lib/chef/win32/security')
-rw-r--r--lib/chef/win32/security/sid.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/chef/win32/security/sid.rb b/lib/chef/win32/security/sid.rb
index 983166ac70..c77616853c 100644
--- a/lib/chef/win32/security/sid.rb
+++ b/lib/chef/win32/security/sid.rb
@@ -59,6 +59,11 @@ class Chef
Chef::ReservedNames::Win32::Security.lookup_account_sid(self)
end
+ def account_simple_name
+ domain, name, use = account
+ name
+ end
+
def account_name
domain, name, use = account
(!domain.nil? && domain.length > 0) ? "#{domain}\\#{name}" : name