ruby-jss 4.2.2 → 4.2.4b1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -1
- data/LICENSE.txt +5 -3
- data/README.md +3 -1
- data/bin/cgrouper +4 -22
- data/bin/jamfHelperBackgrounder +4 -22
- data/bin/netseg-update +4 -22
- data/data/ruby-jss.conf.example +4 -22
- data/lib/jamf/api/classic/api_objects/account.rb +4 -22
- data/lib/jamf/api/classic/api_objects/advanced_computer_search.rb +4 -22
- data/lib/jamf/api/classic/api_objects/advanced_mobile_device_search.rb +4 -22
- data/lib/jamf/api/classic/api_objects/advanced_user_search.rb +4 -22
- data/lib/jamf/api/classic/api_objects/building.rb +4 -22
- data/lib/jamf/api/classic/api_objects/categorizable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/category.rb +7 -24
- data/lib/jamf/api/classic/api_objects/computer.rb +6 -23
- data/lib/jamf/api/classic/api_objects/computer_extension_attribute.rb +2 -20
- data/lib/jamf/api/classic/api_objects/computer_group.rb +2 -20
- data/lib/jamf/api/classic/api_objects/computer_invitation.rb +6 -23
- data/lib/jamf/api/classic/api_objects/creatable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/criteriable/criteria.rb +4 -22
- data/lib/jamf/api/classic/api_objects/criteriable/criterion.rb +2 -20
- data/lib/jamf/api/classic/api_objects/criteriable.rb +2 -20
- data/lib/jamf/api/classic/api_objects/department.rb +4 -22
- data/lib/jamf/api/classic/api_objects/directory_binding.rb +221 -247
- data/lib/jamf/api/classic/api_objects/directory_binding_type/active_directory.rb +492 -526
- data/lib/jamf/api/classic/api_objects/directory_binding_type/admitmac.rb +27 -55
- data/lib/jamf/api/classic/api_objects/directory_binding_type/centrify.rb +191 -220
- data/lib/jamf/api/classic/api_objects/directory_binding_type/directory_binding_type.rb +4 -22
- data/lib/jamf/api/classic/api_objects/directory_binding_type/open_directory.rb +142 -169
- data/lib/jamf/api/classic/api_objects/directory_binding_type/powerbroker_identity_services.rb +37 -57
- data/lib/jamf/api/classic/api_objects/directory_binding_type.rb +4 -22
- data/lib/jamf/api/classic/api_objects/disk_encryption_configuration.rb +90 -84
- data/lib/jamf/api/classic/api_objects/distribution_point.rb +6 -24
- data/lib/jamf/api/classic/api_objects/dock_item.rb +11 -34
- data/lib/jamf/api/classic/api_objects/ebook.rb +4 -22
- data/lib/jamf/api/classic/api_objects/extendable.rb +2 -20
- data/lib/jamf/api/classic/api_objects/ibeacon.rb +6 -23
- data/lib/jamf/api/classic/api_objects/icon.rb +5 -23
- data/lib/jamf/api/classic/api_objects/ldap_server.rb +2 -20
- data/lib/jamf/api/classic/api_objects/locatable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/mac_application.rb +6 -23
- data/lib/jamf/api/classic/api_objects/management_history/audit_event.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history/casper_imaging_log.rb +5 -24
- data/lib/jamf/api/classic/api_objects/management_history/casper_remote_log.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history/computer_usage_log.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history/ebook.rb +4 -26
- data/lib/jamf/api/classic/api_objects/management_history/hash_like.rb +4 -22
- data/lib/jamf/api/classic/api_objects/management_history/mac_app_store_app.rb +4 -26
- data/lib/jamf/api/classic/api_objects/management_history/mdm_command.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history/mobile_device_app.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history/policy_log.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history/screen_sharing_log.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history/user_location_change.rb +4 -25
- data/lib/jamf/api/classic/api_objects/management_history.rb +4 -22
- data/lib/jamf/api/classic/api_objects/matchable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/mdm.rb +6 -23
- data/lib/jamf/api/classic/api_objects/mobile_device.rb +7 -23
- data/lib/jamf/api/classic/api_objects/mobile_device_application.rb +7 -23
- data/lib/jamf/api/classic/api_objects/mobile_device_configuration_profile.rb +4 -22
- data/lib/jamf/api/classic/api_objects/mobile_device_extension_attribute.rb +3 -20
- data/lib/jamf/api/classic/api_objects/mobile_device_group.rb +4 -22
- data/lib/jamf/api/classic/api_objects/netboot_server.rb +4 -22
- data/lib/jamf/api/classic/api_objects/network_segment.rb +7 -23
- data/lib/jamf/api/classic/api_objects/osx_configuration_profile.rb +2 -20
- data/lib/jamf/api/classic/api_objects/package.rb +6 -23
- data/lib/jamf/api/classic/api_objects/patch_external_source.rb +7 -24
- data/lib/jamf/api/classic/api_objects/patch_internal_source.rb +4 -22
- data/lib/jamf/api/classic/api_objects/patch_policy.rb +6 -23
- data/lib/jamf/api/classic/api_objects/patch_title/version.rb +4 -22
- data/lib/jamf/api/classic/api_objects/patch_title.rb +8 -24
- data/lib/jamf/api/classic/api_objects/peripheral.rb +7 -24
- data/lib/jamf/api/classic/api_objects/peripheral_type.rb +7 -26
- data/lib/jamf/api/classic/api_objects/policy.rb +8 -24
- data/lib/jamf/api/classic/api_objects/printer.rb +384 -388
- data/lib/jamf/api/classic/api_objects/purchasable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/removable_macaddr.rb +4 -22
- data/lib/jamf/api/classic/api_objects/restricted_software.rb +7 -24
- data/lib/jamf/api/classic/api_objects/scopable/scope.rb +2 -19
- data/lib/jamf/api/classic/api_objects/scopable.rb +6 -23
- data/lib/jamf/api/classic/api_objects/script.rb +5 -23
- data/lib/jamf/api/classic/api_objects/self_servable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/sitable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/site.rb +2 -20
- data/lib/jamf/api/classic/api_objects/software_update_server.rb +4 -22
- data/lib/jamf/api/classic/api_objects/updatable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/uploadable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/user.rb +6 -24
- data/lib/jamf/api/classic/api_objects/user_extension_attribute.rb +2 -19
- data/lib/jamf/api/classic/api_objects/user_group.rb +4 -22
- data/lib/jamf/api/classic/api_objects/vpp_account.rb +6 -23
- data/lib/jamf/api/classic/api_objects/vppable.rb +4 -22
- data/lib/jamf/api/classic/api_objects/web_hook.rb +4 -20
- data/lib/jamf/api/classic/base_classes/advanced_search.rb +9 -25
- data/lib/jamf/api/classic/base_classes/api_object.rb +7 -24
- data/lib/jamf/api/classic/base_classes/configuration_profile.rb +5 -22
- data/lib/jamf/api/classic/base_classes/extension_attribute.rb +8 -25
- data/lib/jamf/api/classic/base_classes/group.rb +6 -22
- data/lib/jamf/api/classic/base_classes/patch_source.rb +4 -22
- data/lib/jamf/api/classic/xml_workaround.rb +4 -22
- data/lib/jamf/api/connection/attributes.rb +4 -21
- data/lib/jamf/api/connection/cache.rb +4 -21
- data/lib/jamf/api/connection/classic_api.rb +4 -21
- data/lib/jamf/api/connection/connect.rb +4 -21
- data/lib/jamf/api/connection/constants.rb +7 -23
- data/lib/jamf/api/connection/default_connection.rb +4 -21
- data/lib/jamf/api/connection/jamf_pro_api.rb +4 -21
- data/lib/jamf/api/connection/jamf_pro_api_error.rb +2 -20
- data/lib/jamf/api/connection/token.rb +2 -20
- data/lib/jamf/api/connection.rb +4 -21
- data/lib/jamf/api/jamf_pro/api_objects/api_client.rb +2 -20
- data/lib/jamf/api/jamf_pro/api_objects/api_integration.rb +2 -20
- data/lib/jamf/api/jamf_pro/api_objects/api_role.rb +2 -20
- data/lib/jamf/api/jamf_pro/api_objects/computer_prestage.rb +2 -23
- data/lib/jamf/api/jamf_pro/api_objects/device_enrollment.rb +2 -20
- data/lib/jamf/api/jamf_pro/api_objects/inventory_preload_record.rb +2 -20
- data/lib/jamf/api/jamf_pro/api_objects/j_building.rb +2 -20
- data/lib/jamf/api/jamf_pro/api_objects/j_package.rb +2 -20
- data/lib/jamf/api/jamf_pro/api_objects/managed_software_updates/plan.rb +2 -19
- data/lib/jamf/api/jamf_pro/api_objects/managed_software_updates.rb +2 -19
- data/lib/jamf/api/jamf_pro/api_objects/mobile_device_prestage.rb +2 -20
- data/lib/jamf/api/jamf_pro/base_classes/oapi_object.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/bulk_deletable.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/change_log.rb +2 -20
- data/lib/jamf/api/jamf_pro/mixins/collection_resource.rb +2 -20
- data/lib/jamf/api/jamf_pro/mixins/computer_recovery_lock.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/filevault.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/filterable.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/immutable.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/jpapi_resource.rb +2 -20
- data/lib/jamf/api/jamf_pro/mixins/lockable.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/macos_managed_updates.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/macos_redeploy_mgmt_framework.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/prestage.rb +2 -20
- data/lib/jamf/api/jamf_pro/mixins/sortable.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/uncreatable.rb +2 -19
- data/lib/jamf/api/jamf_pro/mixins/undeletable.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_group.rb +12 -31
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_preferences_v1.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_settings_request.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/account_settings_response.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_error_cause.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_integration_request.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_integration_response.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_integration_search_result.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_role.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_role_request.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/api_role_result.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/assign_remove_profile_response_sync_state.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/auth_account_v1.rb +11 -30
- data/lib/jamf/api/jamf_pro/oapi_schemas/authentication_type.rb +13 -32
- data/lib/jamf/api/jamf_pro/oapi_schemas/authorization_v1.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/available_updates.rb +4 -25
- data/lib/jamf/api/jamf_pro/oapi_schemas/building.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/building_search_results.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_application.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_attachment.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_certificate.rb +12 -31
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_configuration_profile.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching.rb +10 -29
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_alert.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_cache_detail.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_data_migration_error_user_info.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_alert.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_capabilities.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_details.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_content_caching_parent_local_network.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_disk_encryption.rb +7 -26
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_extension_attribute.rb +12 -31
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_font.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_general.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_hardware.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_ibeacon.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_inventory_file_vault.rb +7 -26
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_licensed_software.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_local_user_account.rb +12 -31
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_mdm_capability.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_operating_system.rb +8 -27
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_package_receipts.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition.rb +6 -25
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_encryption.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_partition_file_vault2_state.rb +14 -33
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_plugin.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_search_results_v3.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_prestage_v3.rb +6 -26
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_printer.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_purchase.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_remote_management.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_section.rb +28 -47
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_security.rb +28 -47
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_service.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_software_update.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_storage.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/computer_user_and_location.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_device_search_results.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_disown_response.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_search_results.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_instance_sync_status.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_prestage_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/device_enrollment_token.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/dss_declaration.rb +8 -27
- data/lib/jamf/api/jamf_pro/oapi_schemas/dss_declarations.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/enrollment_method.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_computer_prestage_v3.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/get_mobile_device_prestage_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/group_membership.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/history_search_results_v1.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_extension_attribute.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_search_results_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/inventory_preload_record_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/location_information_v2.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/mac_os_managed_software_update_response.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_event_store.rb +4 -25
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_group_post.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_post_response.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle.rb +4 -25
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status.rb +14 -33
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plan_toggle_status_wrapper.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_plans.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_status.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/managed_software_update_statuses.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_name_v2.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_names_v2.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_search_results_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/mobile_device_prestage_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/o_auth_client_credentials.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_note.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/object_history_v1.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/package.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/packages_search_results.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_configuration_post.rb +17 -36
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device.rb +7 -26
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_post.rb +7 -26
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_device_response.rb +2 -23
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_group_post.rb +6 -25
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_search_results.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/plan_status.rb +36 -55
- data/lib/jamf/api/jamf_pro/oapi_schemas/post_computer_prestage_v3.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_purchasing_information_v2.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_assignment_v2.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_response_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/prestage_scope_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_computer_prestage_v3.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/put_mobile_device_prestage_v2.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/redeploy_jamf_management_framework_response.rb +2 -19
- data/lib/jamf/api/jamf_pro/oapi_schemas/v1_site.rb +3 -24
- data/lib/jamf/api/jamf_pro/oapi_schemas.rb +2 -19
- data/lib/jamf/api/jamf_pro/other_classes/change_log_entry.rb +2 -20
- data/lib/jamf/api/jamf_pro/other_classes/ip_address.rb +2 -20
- data/lib/jamf/api/jamf_pro/other_classes/pager.rb +2 -19
- data/lib/jamf/api/jamf_pro/other_classes/timestamp.rb +2 -20
- data/lib/jamf/base_class.rb +2 -19
- data/lib/jamf/client/jamf_binary.rb +4 -22
- data/lib/jamf/client/jamf_helper.rb +4 -22
- data/lib/jamf/client/management_action.rb +4 -22
- data/lib/jamf/client.rb +4 -22
- data/lib/jamf/composer.rb +2 -20
- data/lib/jamf/configuration.rb +2 -20
- data/lib/jamf/constants.rb +2 -20
- data/lib/jamf/db_connection.rb +5 -23
- data/lib/jamf/deprecations/deprecated_api_connection_class.rb +2 -20
- data/lib/jamf/deprecations/deprecated_api_constant.rb +2 -20
- data/lib/jamf/deprecations/deprecated_config_constant.rb +2 -20
- data/lib/jamf/deprecations.rb +4 -22
- data/lib/jamf/exceptions.rb +2 -20
- data/lib/jamf/oapi_validate.rb +2 -19
- data/lib/jamf/ruby_extensions/array/predicates.rb +2 -20
- data/lib/jamf/ruby_extensions/array/utils.rb +2 -20
- data/lib/jamf/ruby_extensions/array.rb +2 -20
- data/lib/jamf/ruby_extensions/filetest/predicates.rb +2 -20
- data/lib/jamf/ruby_extensions/filetest.rb +2 -20
- data/lib/jamf/ruby_extensions/hash/utils.rb +2 -44
- data/lib/jamf/ruby_extensions/hash.rb +2 -20
- data/lib/jamf/ruby_extensions/ipaddr/utils.rb +2 -20
- data/lib/jamf/ruby_extensions/ipaddr.rb +4 -22
- data/lib/jamf/ruby_extensions/object/predicates.rb +2 -20
- data/lib/jamf/ruby_extensions/object.rb +2 -20
- data/lib/jamf/ruby_extensions/pathname/predicates.rb +2 -20
- data/lib/jamf/ruby_extensions/pathname/utils.rb +2 -20
- data/lib/jamf/ruby_extensions/pathname.rb +2 -20
- data/lib/jamf/ruby_extensions/string/conversions.rb +2 -20
- data/lib/jamf/ruby_extensions/string/predicates.rb +2 -20
- data/lib/jamf/ruby_extensions/string.rb +2 -20
- data/lib/jamf/ruby_extensions/time/utils.rb +4 -22
- data/lib/jamf/ruby_extensions/time.rb +4 -22
- data/lib/jamf/ruby_extensions.rb +4 -22
- data/lib/jamf/utility.rb +2 -20
- data/lib/jamf/validate.rb +2 -19
- data/lib/jamf/version.rb +5 -23
- data/lib/jamf/zeitwerk_config.rb +2 -20
- data/lib/jamf.rb +2 -20
- data/lib/jss-api.rb +4 -22
- data/lib/jss.rb +4 -22
- data/lib/ruby-jss.rb +4 -22
- data/test/bin/runtests +4 -22
- data/test/lib/jamf_test/APITest.rb +4 -22
- data/test/lib/jamf_test/advanced_search.rb +4 -22
- data/test/lib/jamf_test/auth.rb +4 -22
- data/test/lib/jamf_test/collection_tests.rb +4 -22
- data/test/lib/jamf_test/prestage_tests.rb +4 -22
- data/test/lib/jamf_test.rb +4 -22
- data/test/tests/advanced_computer_search.rb +4 -22
- data/test/tests/advanced_mobile_device_search.rb +4 -22
- data/test/tests/advanced_user_search.rb +4 -22
- data/test/tests/building.rb +4 -22
- data/test/tests/category.rb +4 -22
- data/test/tests/computer.rb +4 -22
- data/test/tests/computer_group.rb +4 -22
- data/test/tests/computer_prestage.rb +4 -22
- data/test/tests/department.rb +4 -22
- data/test/tests/device_enrollment.rb +4 -22
- data/test/tests/inventory_preload_record.rb +4 -22
- data/test/tests/j_building.rb +4 -22
- data/test/tests/j_package.rb +4 -22
- data/test/tests/mobile_device.rb +4 -22
- data/test/tests/mobile_device_prestage.rb +4 -22
- data/test/tests/policy.rb +4 -22
- metadata +4 -4
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
### with the following modification; you may not use this file except in
|
|
6
|
-
### compliance with the Apache License and the following modification to it:
|
|
7
|
-
### Section 6. Trademarks. is deleted and replaced with:
|
|
8
|
-
###
|
|
9
|
-
### 6. Trademarks. This License does not grant permission to use the trade
|
|
10
|
-
### names, trademarks, service marks, or product names of the Licensor
|
|
11
|
-
### and its affiliates, except as required to comply with Section 4(c) of
|
|
12
|
-
### the License and to reproduce the content of the NOTICE file.
|
|
13
|
-
###
|
|
14
|
-
### You may obtain a copy of the Apache License at
|
|
15
|
-
###
|
|
16
|
-
### http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
###
|
|
18
|
-
### Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
### distributed under the Apache License with the above modification is
|
|
20
|
-
### distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
21
|
-
### KIND, either express or implied. See the Apache License for the specific
|
|
22
|
-
### language governing permissions and limitations under the Apache License.
|
|
1
|
+
# Copyright 2025 Pixar
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the terms set forth in the LICENSE.txt file available at
|
|
4
|
+
# at the root of this project.
|
|
23
5
|
###
|
|
24
6
|
###
|
|
25
7
|
|
|
@@ -76,22 +58,8 @@ module Jamf
|
|
|
76
58
|
# Attributes
|
|
77
59
|
#####################################
|
|
78
60
|
|
|
79
|
-
attr_reader :require_confirmation
|
|
80
|
-
|
|
81
|
-
attr_reader :mount_style
|
|
82
|
-
attr_reader :default_shell
|
|
83
|
-
attr_reader :mount_network_home
|
|
84
|
-
attr_reader :place_home_folders
|
|
85
|
-
attr_reader :uid
|
|
86
|
-
attr_reader :user_gid
|
|
87
|
-
attr_reader :gid
|
|
88
|
-
attr_reader :admin_group
|
|
89
|
-
attr_reader :cached_credentials
|
|
90
|
-
attr_reader :add_user_to_local
|
|
91
|
-
attr_reader :users_ou
|
|
92
|
-
attr_reader :groups_ou
|
|
93
|
-
attr_reader :printers_ou
|
|
94
|
-
attr_reader :shared_folders_ou
|
|
61
|
+
attr_reader :require_confirmation, :local_home, :mount_style, :default_shell, :mount_network_home, :place_home_folders, :uid, :user_gid, :gid,
|
|
62
|
+
:admin_group, :cached_credentials, :add_user_to_local, :users_ou, :groups_ou, :printers_ou, :shared_folders_ou
|
|
95
63
|
|
|
96
64
|
# Constructor
|
|
97
65
|
#####################################
|
|
@@ -129,13 +97,13 @@ module Jamf
|
|
|
129
97
|
if init_data[:local_home].nil? || init_data[:local_home].is_a?(String)
|
|
130
98
|
unless HOME_FOLDER_TYPE.values.include? init_data[:local_home] || init_data[:local_home].nil?
|
|
131
99
|
raise Jamf::InvalidDataError, "Local Home must be one of #{HOME_FOLDER_TYPE.values.join(', ')}."
|
|
132
|
-
|
|
100
|
+
end
|
|
133
101
|
|
|
134
102
|
@local_home = init_data[:local_home]
|
|
135
103
|
else
|
|
136
104
|
unless HOME_FOLDER_TYPE.keys.include? init_data[:local_home]
|
|
137
105
|
raise Jamf::InvalidDataError, "Local Home must be one of :#{HOME_FOLDER_TYPE.keys.join(',:')}."
|
|
138
|
-
|
|
106
|
+
end
|
|
139
107
|
end
|
|
140
108
|
|
|
141
109
|
@admin_group = if init_data[:admin_group].nil?
|
|
@@ -188,7 +156,7 @@ module Jamf
|
|
|
188
156
|
raise Jamf::InvalidDataError, "local_home must be one of :#{HOME_FOLDER_TYPE.keys.join(',:')}." unless HOME_FOLDER_TYPE.keys.include? newvalue
|
|
189
157
|
|
|
190
158
|
HOME_FOLDER_TYPE[newvalue]
|
|
191
|
-
|
|
159
|
+
end
|
|
192
160
|
|
|
193
161
|
@local_home = new
|
|
194
162
|
|
|
@@ -213,7 +181,7 @@ module Jamf
|
|
|
213
181
|
raise Jamf::InvalidDataError, 'default_shell must be empty or a string.' unless newvalue.is_a?(String)
|
|
214
182
|
|
|
215
183
|
newvalue
|
|
216
|
-
|
|
184
|
+
end
|
|
217
185
|
|
|
218
186
|
@default_shell = new
|
|
219
187
|
|
|
@@ -255,7 +223,7 @@ module Jamf
|
|
|
255
223
|
raise Jamf::InvalidDataError, 'place_home_folders must be a string.' unless newvalue.is_a? String
|
|
256
224
|
|
|
257
225
|
newvalue
|
|
258
|
-
|
|
226
|
+
end
|
|
259
227
|
|
|
260
228
|
@place_home_folders = new
|
|
261
229
|
|
|
@@ -283,7 +251,7 @@ module Jamf
|
|
|
283
251
|
raise Jamf::InvalidDataError, 'uid must be a string, integer, or nil.' unless newvalue.is_a?(String) || newvalue.is_a?(Integer) || newvalue.nil?
|
|
284
252
|
|
|
285
253
|
newvalue
|
|
286
|
-
|
|
254
|
+
end
|
|
287
255
|
|
|
288
256
|
@uid = new
|
|
289
257
|
|
|
@@ -305,10 +273,13 @@ module Jamf
|
|
|
305
273
|
Jamf::BLANK
|
|
306
274
|
else
|
|
307
275
|
# Data Check
|
|
308
|
-
|
|
276
|
+
unless newvalue.is_a?(String) || newvalue.is_a?(Integer) || newvalue.nil?
|
|
277
|
+
raise Jamf::InvalidDataError,
|
|
278
|
+
'user_gid must be a string, integer, or nil.'
|
|
279
|
+
end
|
|
309
280
|
|
|
310
281
|
newvalue
|
|
311
|
-
|
|
282
|
+
end
|
|
312
283
|
|
|
313
284
|
@user_gid = new
|
|
314
285
|
|
|
@@ -333,7 +304,7 @@ module Jamf
|
|
|
333
304
|
raise Jamf::InvalidDataError, 'gid must be a string, integer, or nil.' unless newvalue.is_a?(String) || newvalue.is_a?(Integer) || newvalue.nil?
|
|
334
305
|
|
|
335
306
|
newvalue
|
|
336
|
-
|
|
307
|
+
end
|
|
337
308
|
|
|
338
309
|
@gid = new
|
|
339
310
|
|
|
@@ -358,11 +329,12 @@ module Jamf
|
|
|
358
329
|
else
|
|
359
330
|
# Data Check
|
|
360
331
|
unless newvalue.is_a? Array
|
|
361
|
-
raise Jamf::InvalidDataError,
|
|
362
|
-
|
|
332
|
+
raise Jamf::InvalidDataError,
|
|
333
|
+
'An Array must be provided, please use add_admin_group and remove_admin_group for individual group additions and removals.'
|
|
334
|
+
end
|
|
363
335
|
|
|
364
336
|
newvalue
|
|
365
|
-
|
|
337
|
+
end
|
|
366
338
|
|
|
367
339
|
@admin_group = new
|
|
368
340
|
|
|
@@ -387,7 +359,7 @@ module Jamf
|
|
|
387
359
|
raise Jamf::InvalidDataError, 'cached_credentials must be an integer.' unless newvalue.is_a? Integer
|
|
388
360
|
|
|
389
361
|
newvalue
|
|
390
|
-
|
|
362
|
+
end
|
|
391
363
|
|
|
392
364
|
@cached_credentials = new
|
|
393
365
|
|
|
@@ -432,7 +404,7 @@ module Jamf
|
|
|
432
404
|
raise Jamf::InvalidDataError, 'users_ou must be either a string or nil.' unless newvalue.is_a? String || newvalue.nil?
|
|
433
405
|
|
|
434
406
|
newvalue
|
|
435
|
-
|
|
407
|
+
end
|
|
436
408
|
|
|
437
409
|
@users_ou = new
|
|
438
410
|
|
|
@@ -458,7 +430,7 @@ module Jamf
|
|
|
458
430
|
raise Jamf::InvalidDataError, 'groups_ou must be either a string or nil.' unless newvalue.is_a? String || newvalue.nil?
|
|
459
431
|
|
|
460
432
|
newvalue
|
|
461
|
-
|
|
433
|
+
end
|
|
462
434
|
|
|
463
435
|
@groups_ou = new
|
|
464
436
|
|
|
@@ -484,7 +456,7 @@ module Jamf
|
|
|
484
456
|
raise Jamf::InvalidDataError, 'printers_ou must be either a string or nil.' unless newvalue.is_a? String || newvalue.nil?
|
|
485
457
|
|
|
486
458
|
newvalue
|
|
487
|
-
|
|
459
|
+
end
|
|
488
460
|
|
|
489
461
|
@printers_ou = new
|
|
490
462
|
|
|
@@ -510,7 +482,7 @@ module Jamf
|
|
|
510
482
|
raise Jamf::InvalidDataError, 'shared_folders_ou must be either a string or nil.' unless newvalue.is_a? String || newvalue.nil?
|
|
511
483
|
|
|
512
484
|
newvalue
|
|
513
|
-
|
|
485
|
+
end
|
|
514
486
|
|
|
515
487
|
@shared_folders_ou = new
|
|
516
488
|
|
|
@@ -1,226 +1,197 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
### with the following modification; you may not use this file except in
|
|
6
|
-
### compliance with the Apache License and the following modification to it:
|
|
7
|
-
### Section 6. Trademarks. is deleted and replaced with:
|
|
8
|
-
###
|
|
9
|
-
### 6. Trademarks. This License does not grant permission to use the trade
|
|
10
|
-
### names, trademarks, service marks, or product names of the Licensor
|
|
11
|
-
### and its affiliates, except as required to comply with Section 4(c) of
|
|
12
|
-
### the License and to reproduce the content of the NOTICE file.
|
|
13
|
-
###
|
|
14
|
-
### You may obtain a copy of the Apache License at
|
|
15
|
-
###
|
|
16
|
-
### http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
###
|
|
18
|
-
### Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
### distributed under the Apache License with the above modification is
|
|
20
|
-
### distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
21
|
-
### KIND, either express or implied. See the Apache License for the specific
|
|
22
|
-
### language governing permissions and limitations under the Apache License.
|
|
1
|
+
# Copyright 2025 Pixar
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the terms set forth in the LICENSE.txt file available at
|
|
4
|
+
# at the root of this project.
|
|
23
5
|
###
|
|
24
6
|
###
|
|
25
7
|
|
|
26
8
|
module Jamf
|
|
27
9
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
#
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
#
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
#
|
|
212
|
-
# @return [REXML::Element]
|
|
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
|
|
223
|
-
|
|
224
|
-
end
|
|
10
|
+
# Module for containing the different types of DirectoryBindings stored within the JSS
|
|
11
|
+
|
|
12
|
+
module DirectoryBindingType
|
|
13
|
+
|
|
14
|
+
# Module Variables
|
|
15
|
+
#####################################
|
|
16
|
+
|
|
17
|
+
# Module Methods
|
|
18
|
+
#####################################
|
|
19
|
+
|
|
20
|
+
# Classes
|
|
21
|
+
#####################################
|
|
22
|
+
|
|
23
|
+
# Class for the specific ADmitMac DirectoryBinding type stored within the JSS
|
|
24
|
+
#
|
|
25
|
+
# @author Tyler Morgan
|
|
26
|
+
#
|
|
27
|
+
# Attributes
|
|
28
|
+
# @!attribute [rw] workstation_mode
|
|
29
|
+
# @!attribute [rw] overwrite_existing
|
|
30
|
+
# @!attribute [rw] update_PAM
|
|
31
|
+
# @!attribute [rw] zone
|
|
32
|
+
# @!attribute [rw] preferred_domain_server
|
|
33
|
+
class Centrify < DirectoryBindingType
|
|
34
|
+
|
|
35
|
+
# Mix-Ins
|
|
36
|
+
#####################################
|
|
37
|
+
|
|
38
|
+
# Class Methods
|
|
39
|
+
#####################################
|
|
40
|
+
|
|
41
|
+
# Class Constants
|
|
42
|
+
#####################################
|
|
43
|
+
|
|
44
|
+
# Attributes
|
|
45
|
+
#####################################
|
|
46
|
+
attr_reader :workstation_mode
|
|
47
|
+
attr_reader :overwrite_existing, :update_PAM, :zone, :preferred_domain_server
|
|
48
|
+
|
|
49
|
+
# Constructor
|
|
50
|
+
#####################################
|
|
51
|
+
|
|
52
|
+
# An initializer for the Centrify object.
|
|
53
|
+
#
|
|
54
|
+
# @author Tyler Morgan
|
|
55
|
+
# @see Jamf::DirectoryBinding
|
|
56
|
+
# @see Jamf::DirectoryBindingType
|
|
57
|
+
#
|
|
58
|
+
# @param [Hash] initialize data
|
|
59
|
+
def initialize(init_data)
|
|
60
|
+
# Return without processing anything since there is
|
|
61
|
+
# nothing to process.
|
|
62
|
+
return if init_data.nil?
|
|
63
|
+
|
|
64
|
+
# Process the provided information
|
|
65
|
+
@workstation_mode = init_data[:workstation_mode]
|
|
66
|
+
@overwrite_existing = init_data[:overwrite_existing]
|
|
67
|
+
@update_PAM = init_data[:update_PAM]
|
|
68
|
+
@zone = init_data[:zone]
|
|
69
|
+
@preferred_domain_server = init_data[:preferred_domain_server]
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Public Instance Methods
|
|
73
|
+
#####################################
|
|
74
|
+
|
|
75
|
+
# Sets the Centrify Mode to Workstation mode
|
|
76
|
+
#
|
|
77
|
+
# @author Tyler Morgan
|
|
78
|
+
#
|
|
79
|
+
# @param newvalue [Bool]
|
|
80
|
+
#
|
|
81
|
+
# @raise [Jamf::InvalidDataError] If the new value doesn't match a Bool value
|
|
82
|
+
#
|
|
83
|
+
# @return [void]
|
|
84
|
+
def workstation_mode=(newvalue)
|
|
85
|
+
raise Jamf::InvalidDataError, 'workstation_mode must be true or false.' unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass)
|
|
86
|
+
|
|
87
|
+
@workstation_mode = newvalue
|
|
88
|
+
|
|
89
|
+
container&.should_update
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Want to overwrite existing joined computer in the directory
|
|
93
|
+
#
|
|
94
|
+
# @author Tyler Morgan
|
|
95
|
+
#
|
|
96
|
+
# @param newvalue [Bool]
|
|
97
|
+
#
|
|
98
|
+
# @raise [Jamf::InvalidDataError] If the new value doesn't match a Bool value
|
|
99
|
+
#
|
|
100
|
+
# @return [void]
|
|
101
|
+
def overwrite_existing=(newvalue)
|
|
102
|
+
raise Jamf::InvalidDataError, 'overwrite_existing must be true or false.' unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass)
|
|
103
|
+
|
|
104
|
+
@overwrite_existing = newvalue
|
|
105
|
+
|
|
106
|
+
container&.should_update
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Update the PAM module and overwrite DirectoryService configuration
|
|
110
|
+
#
|
|
111
|
+
# @author Tyler Morgan
|
|
112
|
+
#
|
|
113
|
+
# @param newvalue [Bool]
|
|
114
|
+
#
|
|
115
|
+
# @raise [Jamf::InvalidDataError] If the new value doesn't match a Bool value
|
|
116
|
+
#
|
|
117
|
+
# @return [void]
|
|
118
|
+
def update_PAM=(newvalue)
|
|
119
|
+
raise Jamf::InvalidDataError, 'update_PAM must be true or false.' unless newvalue.is_a?(TrueClass) || newvalue.is_a(FalseClass)
|
|
120
|
+
|
|
121
|
+
@update_PAM = newvalue
|
|
122
|
+
|
|
123
|
+
container&.should_update
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# The zone the computer is to be joined to
|
|
127
|
+
#
|
|
128
|
+
# @author Tyler Morgan
|
|
129
|
+
#
|
|
130
|
+
# @param newvalue [String] the new zone the computer is to be joined to
|
|
131
|
+
#
|
|
132
|
+
# @raise [Jamf::InvalidDataError] If the new value is not a string.
|
|
133
|
+
#
|
|
134
|
+
# @return [void]
|
|
135
|
+
def zone=(newvalue)
|
|
136
|
+
new =
|
|
137
|
+
if newvalue.to_s.empty?
|
|
138
|
+
Jamf::BLANK
|
|
139
|
+
else
|
|
140
|
+
# Data Check
|
|
141
|
+
raise Jamf::InvalidDataError, 'zone must be a string.' unless newvalue.is_a? String
|
|
142
|
+
|
|
143
|
+
newvalue
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
@zone = new
|
|
147
|
+
|
|
148
|
+
container&.should_update
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# The specific domain server that should be prioritized
|
|
152
|
+
#
|
|
153
|
+
# @author Tyler Morgan
|
|
154
|
+
#
|
|
155
|
+
# @param newvalue [String] The domain server that would be prioritized.
|
|
156
|
+
#
|
|
157
|
+
# @raise [Jamf::InvalidDataError] If the new value is not a string.
|
|
158
|
+
#
|
|
159
|
+
# @return [void]
|
|
160
|
+
def preferred_domain_server=(newvalue)
|
|
161
|
+
new =
|
|
162
|
+
if newvalue.to_s.empty?
|
|
163
|
+
Jamf::BLANK
|
|
164
|
+
else
|
|
165
|
+
# Data Check
|
|
166
|
+
raise Jamf::InvalidDataError, 'preferred_domain_server must be a string.' unless newvalue.is_a? String
|
|
167
|
+
|
|
168
|
+
newvalue
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
@preferred_domain_server = new
|
|
172
|
+
|
|
173
|
+
container&.should_update
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
# Return a REXML Element containing the current state of the DirectoryBindingType
|
|
177
|
+
# object for adding into the XML of the container.
|
|
178
|
+
#
|
|
179
|
+
# @author Tyler Morgan
|
|
180
|
+
#
|
|
181
|
+
# @return [REXML::Element]
|
|
182
|
+
def type_setting_xml
|
|
183
|
+
type_setting = REXML::Element.new 'centrify'
|
|
184
|
+
type_setting.add_element('workstation_mode').text = @workstation_mode
|
|
185
|
+
type_setting.add_element('overwrite_existing').text = @overwrite_existing
|
|
186
|
+
type_setting.add_element('update_PAM').text = @update_PAM
|
|
187
|
+
type_setting.add_element('zone').text = @zone
|
|
188
|
+
type_setting.add_element('preferred_domain_server').text = @preferred_domain_server
|
|
189
|
+
|
|
190
|
+
type_setting
|
|
191
|
+
end
|
|
192
|
+
|
|
225
193
|
end
|
|
226
|
-
|
|
194
|
+
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
end
|
|
@@ -1,25 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
### with the following modification; you may not use this file except in
|
|
6
|
-
### compliance with the Apache License and the following modification to it:
|
|
7
|
-
### Section 6. Trademarks. is deleted and replaced with:
|
|
8
|
-
###
|
|
9
|
-
### 6. Trademarks. This License does not grant permission to use the trade
|
|
10
|
-
### names, trademarks, service marks, or product names of the Licensor
|
|
11
|
-
### and its affiliates, except as required to comply with Section 4(c) of
|
|
12
|
-
### the License and to reproduce the content of the NOTICE file.
|
|
13
|
-
###
|
|
14
|
-
### You may obtain a copy of the Apache License at
|
|
15
|
-
###
|
|
16
|
-
### http://www.apache.org/licenses/LICENSE-2.0
|
|
17
|
-
###
|
|
18
|
-
### Unless required by applicable law or agreed to in writing, software
|
|
19
|
-
### distributed under the Apache License with the above modification is
|
|
20
|
-
### distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
21
|
-
### KIND, either express or implied. See the Apache License for the specific
|
|
22
|
-
### language governing permissions and limitations under the Apache License.
|
|
1
|
+
# Copyright 2025 Pixar
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the terms set forth in the LICENSE.txt file available at
|
|
4
|
+
# at the root of this project.
|
|
23
5
|
###
|
|
24
6
|
###
|
|
25
7
|
|