I am trying to set the MQMD header for a client. I have managed to open the queue and set ApplIdentitydata and user Id. However the accounting token is giving us some problems.
For Windows it states that the token is a 32 byte array, first and last have some logic and the 30 in between will be set from the Windows SID excluding the Authority Id.
The problem is that our SID converted to bytes has a length of over 40 (minus the 6 byte array authority Id) still greater than the expected 30.
Please could you help and let me know if I am converting the SID incorrectly or if there is anything else that might need to be done?