patch for setting client principal in mcred