E
E
Eugene2020-11-19 12:33:51
Windows
Eugene, 2020-11-19 12:33:51

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

3 answer(s)
V
vreitech, 2020-11-19
@fzfx

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?

V
Vladimir Korotenko, 2020-11-19
@firedragon

Try this
https://progi.pro/api-s-logonuser-medlenen-pri-aut...

X
xmoonlight, 2020-11-19
@xmoonlight

Check the domain controller host/port availability. Available - do logon, no - otherwise.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question