ios .mobileconfig 文件的用途是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14621284/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
what is use of .mobileconfig files?
提问by Bhushan Vaidya
I recently visit m.freemyapps.com in iphone. This web site ask me to install .mobileconfig file . I do some R&D but didn't got the much intresting. Can any one tell me what is use of mobileconfig ?? why it is use in m.freemyapps.com like this sites ??
我最近在 iphone 中访问了 m.freemyapps.com。该网站要求我安装 .mobileconfig 文件。我做了一些研发,但没有太多兴趣。谁能告诉我 mobileconfig 有什么用?为什么在 m.freemyapps.com 这样的网站中使用它?
回答by Ravindra Bagale
This file will contain all the configurations you want for your users iPhones.The mobileconfig file extension is associated with Apple iPhone or iPod Touch. The mobileconfig files are used to customize various configurations and to switch them, whenever the user needs to or to provide access to certain services.
Configuration of mobile Apple devices such as the iPad and iPhone can be done using pre-cooked configuration files. These files are generated by the iPhone Configuration Utility (iPCU), which spits out an XML file with the extension .mobileconfig. Such a file can then be put up a web site so that users can download it to apply a certain so-called profile, which will be listed in the Settings/General panel on the device.
此文件将包含您的用户 iPhone 所需的所有配置。mobileconfig 文件扩展名与 Apple iPhone 或 iPod Touch 相关联。mobileconfig 文件用于自定义各种配置并在用户需要或提供对某些服务的访问时切换它们。
可以使用预先准备好的配置文件来配置移动 Apple 设备,例如 iPad 和 iPhone。这些文件由 iPhone 配置实用程序 (iPCU) 生成,它会输出一个扩展名为 .mobileconfig 的 XML 文件。然后可以将此类文件放在网站上,以便用户可以下载它以应用某个所谓的配置文件,该配置文件将列在设备的“设置/常规”面板中。
these MobileConfiguration files can contain device security policies and restrictions, VPN configuration information, Wi-Fi settings, email and calendar accounts, and authentication credentials that permit iPhone, iPod touch, and iPad to work with certain enterprise systems. The mobileconfig files can also be encrypted.
这些 MobileConfiguration 文件可以包含设备安全策略和限制、VPN 配置信息、Wi-Fi 设置、电子邮件和日历帐户以及允许 iPhone、iPod touch 和 iPad 与某些企业系统配合使用的身份验证凭据。mobileconfig 文件也可以加密。
The Configuration Utility saves the mobileconfig files, which is may be sent to an email account attached to the users iPhone or iPod Touch. After that, the user can open the attachment in mail and is prompted to install it.
配置实用程序会保存 mobileconfig 文件,这些文件可能会发送到用户 iPhone 或 iPod Touch 附带的电子邮件帐户。之后,用户可以在邮件中打开附件并提示安装它。
MobileConfig file looks like this:
MobileConfig 文件如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>PayloadDisplayName</key>
<string>LDAP Settings</string>
<key>PayloadType</key>
<string>com.apple.ldap.account</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>6df7a612-ce0a-4b4b-bce2-7b844e3c9df0</string>
<key>PayloadIdentifier</key>
<string>com.example.iPhone.settings.ldap</string>
<key>LDAPAccountDescription</key>
<string>Company Contacts</string>
<key>LDAPAccountHostName</key>
<string>ldap.example.com</string>
<key>LDAPAccountUseSSL</key>
<false />
<key>LDAPAccountUserName</key>
<string>uid=username,dc=example,dc=com</string>
<key>LDAPSearchSettings</key>
<array>
<dict>
<key>LDAPSearchSettingDescription</key>
<string>Company Contacts</string>
<key>LDAPSearchSettingSearchBase</key>
<string></string>
<key>LDAPSearchSettingScope</key>
<string>LDAPSearchSettingScopeSubtree</string>
</dict>
<dict>
<key>LDAPSearchSettingDescription</key>
<string>Sales Departments</string>
<key>LDAPSearchSettingSearchBase</key>
<string>ou=Sales,dc=example,dc=com</string>
<key>LDAPSearchSettingScope</key>
<string>LDAPSearchSettingScopeSubtree</string>
</dict>
</array>
</dict>
<dict>
<key>PayloadDisplayName</key>
<string>Email Settings</string>
<key>PayloadType</key>
<string>com.apple.mail.managed</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>362e5c11-a332-4dfb-b18b-f6f0aac032fd</string>
<key>PayloadIdentifier</key>
<string>com.example.iPhone.settings.email</string>
<key>EmailAccountDescription</key>
<string>Company E-mail</string>
<key>EmailAccountName</key>
<string>Full Name</string>
<key>EmailAccountType</key>
<string>EmailTypeIMAP</string>
<key>EmailAddress</key>
<string>[email protected]</string>
<key>IncomingMailServerAuthentication</key>
<string>EmailAuthPassword</string>
<key>IncomingMailServerHostName</key>
<string>imap.example.com</string>
<key>IncomingMailServerUseSSL</key>
<true />
<key>IncomingMailServerUsername</key>
<string>[email protected]</string>
<key>OutgoingPasswordSameAsIncomingPassword</key>
<true />
<key>OutgoingMailServerAuthentication</key>
<string>EmailAuthPassword</string>
<key>OutgoingMailServerHostName</key>
<string>smtp.example.com</string>
<key>OutgoingMailServerUseSSL</key>
<true />
<key>OutgoingMailServerUsername</key>
<string>[email protected]</string>
</dict>
</array>
<key>PayloadOrganization</key>
<string>Your Organization's Name</string>
<key>PayloadDisplayName</key>
<string>Organization iPhone Settings</string>
<key>PayloadVersion</key>
<integer>1</integer>
<key>PayloadUUID</key>
<string>954e6e8b-5489-484c-9b1d-0c9b7bf18e32</string>
<key>PayloadIdentifier</key>
<string>com.example.iPhone.settings</string>
<key>PayloadDescription</key>
<string>Sets up Organization's LDAP directories and email on the iPhone</string>
<key>PayloadType</key>
<string>Configuration</string>
</dict>
</plist>
Sometimes this is the only way to configure certain features, because the device's interface won't let you. A good example is Eduroam wireless networking with TTLS.
有时这是配置某些功能的唯一方法,因为设备的界面不允许您这样做。一个很好的例子是使用 TTLS 的 Eduroam 无线网络。