diff options
author | Dan Bjorge <dbjorge@gmail.com> | 2015-04-23 02:22:48 -0700 |
---|---|---|
committer | Dan Bjorge <dbjorge@gmail.com> | 2015-04-23 02:22:48 -0700 |
commit | 505ccd35d931d69bef1f3c62e15d2fcc77762775 (patch) | |
tree | 77b01e1bc9d22871e9b1cfc4a57e993a4d64f598 /lib/chef/win32/security/sid.rb | |
parent | 8c18efe89da10de749511a7e35c182feac49992d (diff) | |
download | chef-505ccd35d931d69bef1f3c62e15d2fcc77762775.tar.gz |
Pin sid_spec default group expectation to observed behavior
Diffstat (limited to 'lib/chef/win32/security/sid.rb')
-rw-r--r-- | lib/chef/win32/security/sid.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/win32/security/sid.rb b/lib/chef/win32/security/sid.rb index 7f461fd766..f8bd934876 100644 --- a/lib/chef/win32/security/sid.rb +++ b/lib/chef/win32/security/sid.rb @@ -213,7 +213,8 @@ class Chef end # See https://technet.microsoft.com/en-us/library/cc961996.aspx - # In practice, this is generally the same as current_user + # In practice, this seems to be SID.current_user for Microsoft Accounts, the current + # user's Domain Users group for domain accounts, and SID.None otherwise. def self.default_security_object_group token = Chef::ReservedNames::Win32::Security.open_current_process_token Chef::ReservedNames::Win32::Security.get_token_information_primary_group(token) |