10

我最近在 iphone 上访问了 m.freemyapps.com。该网站要求我安装 .mobileconfig 文件。我做了一些研发,但并没有很有趣。谁能告诉我mobileconfig的用途是什么?为什么它在 m.freemyapps.com 这样的网站中使用?

4

1 回答 1

19

此文件将包含您想要为您的用户 iPhone 进行的所有配置。mobileconfig 文件扩展名与 Apple iPhone 或 iPod Touch 相关联。mobileconfig 文件用于自定义各种配置并在用户需要或提供对某些服务的访问时切换它们。

可以使用预先准备好的配置文件对 iPad 和 iPhone 等移动 Apple 设备进行配置。这些文件由 iPhone 配置实用程序 (iPCU) 生成,它会生成一个扩展名为 .mobileconfig 的 XML 文件。然后可以将此类文件放在网站上,以便用户可以下载它以应用某个所谓的配置文件,该配置文件将列在设备的“设置/常规”面板中。

这些 MobileConfiguration 文件可以包含设备安全策略和限制、VPN 配置信息、Wi-Fi 设置、电子邮件和日历帐户以及允许 iPhone、iPod touch 和 iPad 与某些企业系统一起工作的身份验证凭据。mobileconfig 文件也可以加密。

配置实用程序会保存 mobileconfig 文件,这些文件可能会发送到连接到用户 iPhone 或 iPod Touch 的电子邮件帐户。之后,用户可以在邮件中打开附件并提示安装它。

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>username@example.com</string>
            <key>IncomingMailServerAuthentication</key>
            <string>EmailAuthPassword</string>
            <key>IncomingMailServerHostName</key>
            <string>imap.example.com</string>
            <key>IncomingMailServerUseSSL</key>
            <true />
            <key>IncomingMailServerUsername</key>
            <string>username@es2eng.com</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>username@example.com</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>

有时这是配置某些功能的唯一方法,因为设备的界面不允许您这样做。一个很好的例子是带有 TTLS 的 Eduroam 无线网络。

于 2013-01-31T08:38:01.040 回答