From 794730a1ce8e8ae0d285b15388854124503553ec Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Tue, 15 Jul 2008 22:32:02 +0000 Subject: [PATCH] Bug 409364. Fixed RemoveKey to extract proper LUID. (Windows only change) --- CASA/CASA.changes | 6 ++++++ CASA/micasad/verbs/RemoveKey.cs | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CASA/CASA.changes b/CASA/CASA.changes index e5f500c2..a9483ad5 100644 --- a/CASA/CASA.changes +++ b/CASA/CASA.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 15 16:26:21 MDT 2008 - jnorman@novell.com + +- Bug 409364. Fixed RemoveKey.cs to extract proper LUID + Affects windows only. + ------------------------------------------------------------------- Wed Jun 25 10:46:21 MDT 2008 - jnorman@novell.com diff --git a/CASA/micasad/verbs/RemoveKey.cs b/CASA/micasad/verbs/RemoveKey.cs index a32591d0..7dae302f 100644 --- a/CASA/micasad/verbs/RemoveKey.cs +++ b/CASA/micasad/verbs/RemoveKey.cs @@ -135,9 +135,9 @@ namespace sscs.verbs { // WINDOWS LUID - // System Services, like DLU create fake UIDs, store credentials and then want to read that data. - luidLow = BitConverter.ToInt32(inBuf, 18 + ((int)keyChainIdLen) + ((int)secretIdLen) + 8); - luidHigh = BitConverter.ToInt32(inBuf, 18 + ((int)keyChainIdLen) + ((int)secretIdLen) + 12); + // System Services, like DLU create fake UIDs, store credentials and then want to read that data. + luidLow = BitConverter.ToInt32(inBuf, 22 + ((int)keyChainIdLen) + ((int)secretIdLen) + ((int)keyLen) + 8); + luidHigh = BitConverter.ToInt32(inBuf, 22 + ((int)keyChainIdLen) + ((int)secretIdLen) + ((int)keyLen) + 12); // this code is for ZEN. Here we switch to a keychain who's ID is the LUID of the user logging in. // ZEN processes run as system and pass the LUID in the extension parameter.