class Jamf::DirectoryBindingType::OpenDirectory
Class for the specific OpenDirectory
DirectoryBinding
type stored within the JSS
@author Tyler Morgan
Attributes @!attribute [rw] require_confirmation
Attributes
Attributes
Public Class Methods
Constructor
# File lib/jamf/api/classic/api_objects/directory_binding_type/open_directory.rb 67 def initialize(init_data) 68 69 # Return without processing anything since there is 70 # nothing to process. 71 return if init_data.nil? 72 73 # Process the provided information 74 @encrypt_using_ssl = init_data[:encrypt_using_ssl] 75 @perform_secure_bind = init_data[:perform_secure_bind] 76 @use_for_authentication = init_data[:use_for_authentication] 77 @use_for_contacts = init_data[:use_for_contacts] 78 end
Public Instance Methods
Encrypt the connection using SSL
@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/open_directory.rb 94 def encrypt_using_ssl=(newvalue) 95 96 raise Jamf::InvalidDataError, "encrypt_using_ssl must be true or false." unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass) 97 98 @encrypt_using_ssl = newvalue 99 100 self.container&.should_update 101 end
Attempt to perform a secure bind to the domain server
@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/open_directory.rb 113 def perform_secure_bind=(newvalue) 114 115 raise Jamf::InvalidDataError, "perform_secure_bind must be true or false." unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass) 116 117 @perform_secure_bind = newvalue 118 119 self.container&.should_update 120 end
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/open_directory.rb 167 def type_setting_xml 168 type_setting = REXML::Element.new "admitmac" 169 type_setting.add_element("encrypt_using_ssl").text = @encrypt_using_ssl 170 type_setting.add_element("perform_secure_bind").text = @perform_secure_bind 171 type_setting.add_element("use_for_authentication").text = @use_for_authentication 172 type_setting.add_element("use_for_contacts").text = @use_for_contacts 173 174 return type_setting 175 end
Use this binding for authentication
@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/open_directory.rb 132 def use_for_authentication=(newvalue) 133 134 raise Jamf::InvalidDataError, "use_for_authentication must be true or false." unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass) 135 136 @use_for_authentication = newvalue 137 138 self.container&.should_update 139 end
Use this binding for contact population
@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/open_directory.rb 151 def use_for_contacts=(newvalue) 152 153 raise Jamf::InvalidDataError, "use_for_contacts must be true or false." unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass) 154 155 @use_for_contacts = newvalue 156 157 self.container&.should_update 158 end