Method: Puppet::Provider::Acl::Windows::Base#name_to_sid
- Defined in:
- lib/puppet/provider/acl/windows/base.rb
#name_to_sid(name) ⇒ Puppet::Util::Windows::SID
Note:
Puppet 3.7 deprecated methods at old locations in favor of SID class
Converts an account name into an SID string
110 111 112 113 114 115 116 |
# File 'lib/puppet/provider/acl/windows/base.rb', line 110 def name_to_sid(name) if Puppet::Util::Windows::SID.respond_to?(:name_to_sid) Puppet::Util::Windows::SID.name_to_sid(name) else Puppet::Util::Windows::Security.name_to_sid(name) end end |