Answer the question
In order to leave comments, you need to log in
How does LogonUser work when there is no connection to the domain?
The machine from the domain is on a network where there is no access to the domain. Accordingly, how does LogonUser work in this case?
In my case, the problem is that this function takes ~1.5 minutes. I suspect that this is due to the 1789 error. But as far as I understand, this error is logical when there is no connection with the domain. This is true?
Answer the question
In order to leave comments, you need to log in
when there is no connection with the domain, data from the authorization cache is used for authorization.
the function takes ~1.5 minutes because it takes ~1.5 minutes to determine if the domain is not connected.
The 1789 error may or may not be logical. There are a lot of 1789 errors in the world, which one do you have?
Try this
https://progi.pro/api-s-logonuser-medlenen-pri-aut...
Check the domain controller host/port availability. Available - do logon, no - otherwise.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question