E
E
Eugene2020-11-03 20:45:09
C++ / C#
Eugene, 2020-11-03 20:45:09

What Logon Type to use?

Good afternoon.
The project in the code uses the LOGON32_LOGON_INTERACTIVE parameter for the LogonUserW function. Login is made for the subsequent call of the LookupAccountNameA function to obtain the SID.
The question is, what is the optimal Logon Type to use here?
With LOGON32_LOGON_INTERACTIVE, there are intermittent delays when there is no access to the domain. As far as I understand, LOGON32_LOGON_NETWORK works faster due to the fact that it doesn't cache login/password. Can I use it? Or some other type?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2020-11-04
@jcmvbkbc

Login is made for the subsequent call of the LookupAccountNameA function to obtain the SID.

Look, LookupAccountNameA doesn't require a user token, this function works with strings. Why do you need a login?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question