交付 MDM DeviceLock 有效负载 [英] Delivering MDM DeviceLock Payload

查看:29
本文介绍了交付 MDM DeviceLock 有效负载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将第一个有效负载作为 mdm: 发送后,我们能够获得状态为空闲的响应.现在我们要发送一个简单的设备锁定负载.我们按照完全相同的流程发送负载,但返回的响应为空白.

We were able to get an response with Status as Idle after send the first payload as mdm:. Now we want to send a simple device lock payload. we followed the exact same process to send the payload but the response returned was blank.

我们按照如下方式使用证书:1. 在 MDM 服务器上,为了发送 mdm 命令,我们使用 MDM Vendors APNS 证书,标识符为 com.apple.mgmt.myapp.(此标识符在配置文件中设置为主题).2. 在配置文件中,我们将凭据设置为 MDM 客户端返回的 p12 文件.

We are following the certificate use as follows: 1. On the MDM server, To send mdm commands we use MDM Vendors APNS certificate with identifier as com.apple.mgmt.myapp.(This identifier is set as topic in configuration profile). 2. In the configuration profile, we are setting the credentials as the p12 file which is returned by the MDM Client.

我收到以下错误..:MC|无法解析配置文件数据.错误:

I am getting the below error..: MC|Failed to parse profile data. Error:

    NSError 0x1c58c2f0:
    Desc   : Invalid Profile
    US Desc: Invalid Profile
    Domain : MCProfileErrorDomain
    Code   : 1000
    Type   : MCFatalError


    <Warning>: MDM|Command Status: Error
    Error: NSError 0x1c58c2f0:
    Desc   : Invalid Profile
    US Desc: Invalid Profile
    Domain : MCProfileErrorDomain
    Code   : 1000
    Type   : MCFatalError

推荐答案

您没有使用 APNS 发送设备锁定配置文件.设备通过 APNS 收到 MDM 有效负载后打电话回家",您的服务器将 XML(不是 JSON!)发送回包含设备锁定命令的设备.

You do not send the device lock profile using APNS. The device 'phones home' after it receives the MDM payload via APNS and your server sends back XML (NOT JSON!) to the device containing the device lock command.

这篇关于交付 MDM DeviceLock 有效负载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆