配置描述文件是XML 文件,包含以下內(nèi)容:設(shè)備安全策略、VPN 配置信息、Wi-Fi 設(shè)置、APN 設(shè)置、Exchange帳戶設(shè)置、郵件設(shè)置以及允許 iPhone 和 iPod touch 與企業(yè)系統(tǒng)配合使用的證書。
下面這個(gè)文章大致介紹了下配置描述文件從生成到安裝的過程:
Note: this does not push your configuration to an iPhone. Theuser of the iPhone must go to a web address and install aconfiguration profile.
opensslsmime
" to sign your .mobileconfig file, but no one seems totell you how. We'll go over that here as well.
Your .mobileconfig file will end up looking something likethis:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple/DTD PLIST 1.0//EN" "<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>LDAPSearchSettingDescrip tion</key>
<string>Company Contacts</string>
<key>LDAPSearchSettingSearchB ase</key>
<string></string>
<key>LDAPSearchSettingScope</key>
<string>LDAPSearchSettingScopeSu btree</string>
</dict>
<dict>
<key>LDAPSearchSettingDescrip tion</key>
<string>Sales Departments</string>
<key>LDAPSearchSettingSearchB ase</key>
<string>ou=Sales,dc=example,dc=com</string>
<key>LDAPSearchSettingScope</key>
<string>LDAPSearchSettingScopeSu btree</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>IncomingMailServerAuthen tication</key>
<string>EmailAuthPassword</string>
<key>IncomingMailServerHostNa me</key>
<string>imap.example.com</string>
<key>IncomingMailServerUseSSL </key>
<true />
<key>IncomingMailServerUserna me</key>
<string>username@es2eng.com</string>
<key>OutgoingPasswordSameAsIn comingPassword</key>
<true />
<key>OutgoingMailServerAuthen tication</key>