baderous
baderous

Reputation: 121

LogonUser can be too slow - looking for a way to authenticate the user only locally, or reduce the central validation timeout

I'm having trouble finding a quick way to authenticate users. LogonUser takes several seconds to return when a connection to the domain controller is slow or not available.

I'm using LOGON32_LOGON_NETWORK as the logon type, which I've read it's faster, but the function still takes several seconds to return on those occasions. I assume it's the server timeout before resorting to the cached credentials.

Since I don't want/need the domain validation:

  1. is there any way to reduce the timeout before using the cached credentials?
  2. is there any way to authenticate only locally (without checking with the domain controller at all)?
  3. are there other ways to authenticate the logged-on user that are faster?

Upvotes: 5

Views: 1050

Answers (0)

Related Questions