summaryrefslogtreecommitdiff
path: root/lib/puppet/provider/file/windows.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/file/windows.rb')
-rw-r--r--lib/puppet/provider/file/windows.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/puppet/provider/file/windows.rb b/lib/puppet/provider/file/windows.rb
index 5c8038db1..c0ef68cd9 100644
--- a/lib/puppet/provider/file/windows.rb
+++ b/lib/puppet/provider/file/windows.rb
@@ -8,20 +8,19 @@ Puppet::Type.type(:file).provide :windows do
if Puppet.features.microsoft_windows?
require 'puppet/util/windows'
- require 'puppet/util/adsi'
include Puppet::Util::Windows::Security
end
# Determine if the account is valid, and if so, return the UID
def name2id(value)
- Puppet::Util::Windows::Security.name_to_sid(value)
+ Puppet::Util::Windows::SID.name_to_sid(value)
end
# If it's a valid SID, get the name. Otherwise, it's already a name,
# so just return it.
def id2name(id)
- if Puppet::Util::Windows::Security.valid_sid?(id)
- Puppet::Util::Windows::Security.sid_to_name(id)
+ if Puppet::Util::Windows::SID.valid_sid?(id)
+ Puppet::Util::Windows::SID.sid_to_name(id)
else
id
end