class Jamf::DirectoryBindingType::Centrify

Class for the specific ADmitMac DirectoryBinding type stored within the JSS

@author Tyler Morgan

Attributes @!attribute [rw] workstation_mode @!attribute [rw] overwrite_existing @!attribute [rw] update_PAM @!attribute [rw] zone @!attribute [rw] preferred_domain_server

Attributes

overwrite_existing[R]
preferred_domain_server[R]
update_PAM[R]
workstation_mode[R]

Attributes

zone[R]

Public Class Methods

new(init_data) click to toggle source

An initializer for the Centrify object.

@author Tyler Morgan @see Jamf::DirectoryBinding @see Jamf::DirectoryBindingType

@param [Hash] initialize data

   # File lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb
79 def initialize(init_data)
80 
81     # Return without processing anything since there is
82     # nothing to process.
83     return if init_data.nil?
84 
85     # Process the provided information
86     @workstation_mode = init_data[:workstation_mode]
87     @overwrite_existing = init_data[:overwrite_existing]
88     @update_PAM = init_data[:update_PAM]
89     @zone = init_data[:zone]
90     @preferred_domain_server = init_data[:preferred_domain_server]
91 end

Public Instance Methods

overwrite_existing=(newvalue) click to toggle source

Want to overwrite existing joined computer in the directory

@author Tyler Morgan

@param newvalue [Bool]

@raise [Jamf::InvalidDataError] If the new value doesn’t match a Bool value

@return [void]

    # File lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb
126 def overwrite_existing=(newvalue)
127 
128     raise Jamf::InvalidDataError, "overwrite_existing must be true or false." unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass)
129 
130     @overwrite_existing = newvalue
131 
132     self.container&.should_update
133 end
preferred_domain_server=(newvalue) click to toggle source

The specific domain server that should be prioritized

@author Tyler Morgan

@param newvalue [String] The domain server that would be prioritized.

@raise [Jamf::InvalidDataError] If the new value is not a string.

@return [void]

    # File lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb
190 def preferred_domain_server=(newvalue)
191 
192     new =
193         if newvalue.to_s.empty?
194             Jamf::BLANK
195         else
196             # Data Check
197             raise Jamf::InvalidDataError, "preferred_domain_server must be a string." unless newvalue.is_a? String
198             newvalue
199         end
200 
201     @preferred_domain_server = new
202 
203     self.container&.should_update
204 end
type_setting_xml() click to toggle source

Return a REXML Element containing the current state of the DirectoryBindingType object for adding into the XML of the container.

@author Tyler Morgan

@return [REXML::Element]

    # File lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb
213 def type_setting_xml
214     type_setting = REXML::Element.new "centrify"
215     type_setting.add_element("workstation_mode").text = @workstation_mode
216     type_setting.add_element("overwrite_existing").text = @overwrite_existing
217     type_setting.add_element("update_PAM").text = @update_PAM
218     type_setting.add_element("zone").text = @zone
219     type_setting.add_element("preferred_domain_server").text = @preferred_domain_server
220 
221     return type_setting
222 end
update_PAM=(newvalue) click to toggle source

Update the PAM module and overwrite DirectoryService configuration

@author Tyler Morgan

@param newvalue [Bool]

@raise [Jamf::InvalidDataError] If the new value doesn’t match a Bool value

@return [void]

    # File lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb
145 def update_PAM=(newvalue)
146 
147     raise Jamf::InvalidDataError, "update_PAM must be true or false." unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass)
148 
149     @update_PAM = newvalue
150 
151     self.container&.should_update
152 end
workstation_mode=(newvalue) click to toggle source

Sets the Centrify Mode to Workstation mode

@author Tyler Morgan

@param newvalue [Bool]

@raise [Jamf::InvalidDataError] If the new value doesn’t match a Bool value

@return [void]

    # File lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb
107 def workstation_mode=(newvalue)
108 
109     raise Jamf::InvalidDataError, "workstation_mode must be true or false." unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass)
110 
111     @workstation_mode = newvalue
112 
113     self.container&.should_update
114 end
zone=(newvalue) click to toggle source

The zone the computer is to be joined to

@author Tyler Morgan

@param newvalue [String] the new zone the computer is to be joined to

@raise [Jamf::InvalidDataError] If the new value is not a string.

@return [void]

    # File lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb
164 def zone=(newvalue)
165 
166     new =
167         if newvalue.to_s.empty?
168             Jamf::BLANK
169         else
170             # Data Check
171             raise Jamf::InvalidDataError, "zone must be a string." unless newvalue.is_a? String
172             newvalue
173         end
174 
175     @zone = new
176 
177     self.container&.should_update
178 end