diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-07-30 08:14:04 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-07-30 08:14:04 -0700 |
commit | 5ef30650fd8e0657f56278a7173b3a5f742d93a5 (patch) | |
tree | 9f47cd160b05f0159020ca5bfa1cf6819f2154c6 /lib/chef/win32/net.rb | |
parent | b712f13d2f24dfdcb5c2782fcd17c3e864aaee43 (diff) | |
download | chef-5ef30650fd8e0657f56278a7173b3a5f742d93a5.tar.gz |
FFYify NetLocalGroupDelMembers
Diffstat (limited to 'lib/chef/win32/net.rb')
-rw-r--r-- | lib/chef/win32/net.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/chef/win32/net.rb b/lib/chef/win32/net.rb index 5027de3e90..0de310daf1 100644 --- a/lib/chef/win32/net.rb +++ b/lib/chef/win32/net.rb @@ -273,6 +273,19 @@ END net_api_error!(rc) end end + + def self.net_local_group_del_members(server_name, group_name, members) + server_name = wstring(server_name) + group_name = wstring(group_name) + + lgrmi3s = members_to_lgrmi3(members) + rc = NetLocalGroupDelMembers( + server_name, group_name, 3, lgrmi3s[0], members.size) + + if rc != NERR_Success + net_api_error!(rc) + end + end end end end |