I'm trying to use LogonUser() to verify a user before proceeding in some actions. The user enters their creds. When I call the API when connected to the domain (VPN), then LogonUser() succeeds. However, when disconnected from the VPN, it fails (1326 Invalid user/password).
Most of the time I run disconnected from the VPN and I can obviously login to my computer because somewhere on the machine, it must cache my creds or at least the hash of my creds to see if they match.
So, is there any API I can call to verify user creds when disconnected from the VPN/domain? I have tried all the available flags to the API, and none work. Most of the flags work when connected to the VPN, but none work when disconnected.
I take that back ... LOGON32_LOGON_NEW_CREDENTIALS succeeds...but then it succeeds no matter the creds entered it seems.
I have written a little test app that exercises all the options, but as I said, only successfully pass LogonUser when connected to VPN and entering correct domain creds.
Any suggestions would be appreciated...
