From f19a0ea8c12c06bb01ddfe53e47e3a02ae87bdbb Mon Sep 17 00:00:00 2001 From: Nick Lewis Date: Tue, 9 Aug 2011 13:04:10 -0700 Subject: (#8408/8409) Add a Windows ADSI helper module This module (Puppet::Util::ADSI) provides access to Active Directory Services Interfaces, using win32ole. The base module has methods for generating resource URIs and connecting to ADSI. It also provides classes Puppet::Util::ADSI::User and Puppet::Util::ADSI::Group for managing Active Directory users and groups, along with their properties and group memberships. This will be used to implement the Windows ADSI user and group providers. Based on work by: Joel Rosario Based on work by: Cameron Thomas Reviewed-By: Matt Robinson (cherry picked from commit b5fd95336e71ad428109cddf6cd2f33bdd31e025) --- lib/puppet/feature/base.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/puppet/feature') diff --git a/lib/puppet/feature/base.rb b/lib/puppet/feature/base.rb index 56782b3b6..2eddadb7a 100644 --- a/lib/puppet/feature/base.rb +++ b/lib/puppet/feature/base.rb @@ -46,6 +46,9 @@ Puppet.features.add(:microsoft_windows) do require 'win32/process' require 'win32/dir' require 'win32/service' + require 'win32ole' + require 'win32/api' + true rescue LoadError => err warn "Cannot run on Microsoft Windows without the sys-admin, win32-process, win32-dir & win32-service gems: #{err}" unless Puppet.features.posix? end -- cgit