在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):timsutton/mcxToProfile开源软件地址(OpenSource Url):https://github.com/timsutton/mcxToProfile开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):mcxToProfileOverviewmcxToProfile is a simple command-line utility to create "Custom Settings" Configuration Profiles without the need for the Profile Manager Device Management service in OS X Server 10.7 and 10.8. It can take input from property list files on disk or directly from a Directory Services node (Local MCX or Open Directory). Administrators who would like to move from MCX-based management to Profiles may find this tool useful to speed up the process of migrating and testing. Currently it only supports the "Custom Settings" type, as this seems to be the functional equivalent of key-value domain management in Workgroup Manager. mcxToProfile should function on OS X 10.5 or greater. It also makes use of Greg Neagle's FoundationPlist library from the Munki project, which provides native plist support via PyObjC. FoundationPlist is licensed under the Apache License, version 2.0. Example usageHere's an example:
This will create a .mobileconfig file in the same directory, which is equivalent to a "Custom Settings" profile configured in the Profile Manager web application included in Lion Server. The
Here's another example, which will import an already-configured MCX preference defined in an available Directory Services computer object:
The Plist input options:Once/Often/Always managementOne downside to the Profile Manager web GUI is that it does not provide a mechanism to choose the "management frequency" of an MCX-set preference, such as "Once" or "Often". It was discovered (again, by Greg Neagle) that it's possible to regain that functionality, by slightly altering the contents of the .mobileconfig file to match the MCX XML as when created in Workgroup Manager:
mcxToProfile provides the same functionality:
When using the Note: It's been documented that in OS X Yosemite, the behaviour for the "Often"-equivalent can lead to undesirable results when the profile is installed, so mcxToProfile now discourages the use of "Often." Thanks to Eric Holtam and Patrick Fergus for documentation of this issue. DomainsPlist files used for application preferences are typically named by a reverse-domain format, and end in '.plist'. Currently, mcxToProfile will assume that the name portion of the plist file is the domain to be used by MCX. In other words, application preferences won't function if you use something like ByHost preferencesA plist that contains one of the following patterns in its filename will automatically be configured as a ByHost preference:
Payload IdentifiersThe only option required besides If you attempt to install a profile with the same identifier, it will update the existing profile instead of installing another profile. Specify an identifier using either the Two profiles with unique toplevel PayloadIdentifiers but matching toplevel PayloadUUIDs will both install successfully. However, Profile Manager maintains consistent UUIDs, so we aim to do the same (although currently only at the top-level). Other functionality
To-do
AcknowledgmentsSpecial thanks to Greg Neagle for some very useful intial feedback, and for adding the --dsimport functionality. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论