Bug 409364. Fixed RemoveKey to extract proper LUID. (Windows only change)

This commit is contained in:
Jim Norman 2008-07-15 22:32:02 +00:00
parent 215bd98dd5
commit 794730a1ce
2 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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.