Hi everyone,
I'm implementing a server side support for Windows MDM.
Following Microsoft guides and protocols I was able to perform Discovery, GetPolicies and Enrollment phases; however right after the enrollment success (confirmed by UI and admin Event Viewer) the device sends an "empty" OMA-DM request to the endpoint I provided with wap provisioning (in node <characteristic type="APPLICATION"><parm name="ADDR" ..... ).
When I say "empty" I mean that in the request headers I have the MS-SIGNATURE I requested in the provisioning, the get parameters are "mode" and "Platform", but the request doesn't have a payload.
Here is the log of the message creation:
<EventData>
<Data Name="Message1">B42A7BD0-3935-4A2A-AD2E-78BC15622925</Data>
<Data Name="Message2">MyMDMserver</Data>
<Data Name="Message3">NULL</Data>
<Data Name="Message4">1.2</Data>
<Data Name="HexInt1">0x23</Data>
<Data Name="HexInt2">0x5</Data>
<Data Name="HexInt3">0x0</Data>
<Data Name="HexInt4">0x2</Data>
<Data Name="UInt1">1</Data>
<Data Name="UInt2">3</Data>
</EventData>
The endpoint I provided is, temporarily, a simple script that logs the request and its payload,
Now, I'm sorry for the newbie questions, but:
- Is it correct that the first request I receive from the device has no payload? (According to the OMA-DM protocol, section 8.3 the client MUST send device info in the first message) If not could you suggest me where the problem could be?
- What operations should the endpoint perform?
P.S. I obtained application identity, SID and secret from Windows Developer Account and I am able to get a token of WNS, but I think I'm missing something