waft.warp_client.mdm.macos_warp_mdm_handler module

File to manage and validate macOS MDM settings.

class waft.warp_client.mdm.macos_warp_mdm_handler.MacOSMDMHandler(node: BaseNode)

Bases: WarpMDMHandler

Class for MDM handling on macOS.

apply_mdm()

Applies current MDM settings by writing XML or appropriate file and structure

property default_mdm_filepath: PurePath

Returns the system’s default MDM path

property mdm_plist_contents: dict | list[dict]

Return contents of MDM plist file as defined in self.mdm_configs

plist_file = PurePosixPath('/Library/Managed Preferences/com.cloudflare.warp.plist')
read_mdm() str

Read the mdm file from the system into memory.

unmanaged_mdm = PurePosixPath('/Library/Application Support/Cloudflare/mdm.xml')