View Issue Details

IDProjectCategoryView StatusLast Update
0005578JEDI API & WSC LibraryWindows Security Code Library (JWSCL)public2011-05-10 11:09
ReporterCCRDude2Assigned ToChristianWimmer 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Summary0005578: JwElevateProcess fails on valid unencrypted passwords on Win XP
DescriptionSituation: using JwElevateProcess as a runas replacement due to XP admins-with-no-password issues.

I pass a login helper method to JwElevateProcess which uses a TjwCredentialsPrompt. Since this happens on XP (and in XP compatibility mode), RunCreateProcess within JwElevateProcess is called.

There, CreateProcessWithLogonW is called with parameter DecryptedPassword. This is only set on IsEncryptedPassword = true - if I use TjwCredentialsPrompt, I have an unencrypted password, which gets ignored.

With DecryptedPassword empty, CreateProcessWithLogonW always fails, even on valid accounts.
Additional InformationWorkaround: pass encrypted password (recommended anyway), or patch code (add "else" part to "if IsEncryptedPassword".
TagsNo tags attached.

Activities

ChristianWimmer

2011-05-10 11:09

administrator   ~0018548

I added the else branch to allow decrypted passwords; otherwise the event call had to be changed to allow only encrypted passwords.

The subversion repository of today's date contains the fix.

Issue History

Date Modified Username Field Change
2011-05-09 21:10 CCRDude2 New Issue
2011-05-09 21:10 CCRDude2 Status new => assigned
2011-05-09 21:10 CCRDude2 Assigned To => ChristianWimmer
2011-05-10 11:09 ChristianWimmer Note Added: 0018548
2011-05-10 11:09 ChristianWimmer Status assigned => resolved
2011-05-10 11:09 ChristianWimmer Resolution open => fixed