LOGON32_LOGON_SERVICE for "NT SERVICE\ServiceName"

  • Thread starter Thread starter Alex V. Ivanoff
  • Start date Start date
A

Alex V. Ivanoff

Guest
LOGON32_LOGON_SERVICE can be used to create logon for built-in service accounts Network Service, Local Service, SYSTEM:

LogOnUser("SYSTEM", "NT AUTHORITY", nullptr, LOGON32_LOGON_SERVICE, LOGON32_PROVIDER_WINNT50, &token);


Is it possible to create a logon for "NT SERVICE\ServiceName"? When I try this

LogOnUser("SomeService", "NT SERVICE", nullptr, LOGON32_LOGON_SERVICE, LOGON32_PROVIDER_WINNT50, &token);

I get "The user name or password is incorrect".

Continue reading...
 
Back
Top