Using LogonUser () for credential verification only

We are developing an application with an internal user account system, but would like to be able to use credentials from Active Directory and / or Windows accounts. To this end, we store the user ID in a field in the user table of the application. Our login mechanism operates as follows:

The problem that arose is this: we used LOGON32_LOGON_NETWORK for logon_type, but now we are faced with some security configurations where "Access to this computer from the network" is denied, which means that the type of network entry is denied.

My question is: what type of input should be used for this situation? Interactive? In fact, we do not use the Logon token for anything else but to extract the user's SID. Our application has its own internal groups and permissions; we don’t use Windows groups or permissions at all. From the point of view of Windows and the domain controller, all we do is log on and quickly log off.

Or are we considering this completely wrong, and should we use some other login method completely?

thank

+4
3

, , LogonUser() LOGON32_LOGON_NETWORK , " " .

:

  • LogonUser() LOGON32_LOGON_NETWORK.
  • ERROR_LOGON_TYPE_NOT_GRANTED, LogonUser() LOGON32_LOGON_NEW_CREDENTIALS LOGON32_PROVIDER_WINNT50.
+1

SSPI , .

. http://support.microsoft.com/kb/180548 ; SSPLogonUser - , .

0

LOGON32_LOGON_BATCH, :

, . , , , -.

( ).

System administrators may still need to reconfigure the server to provide access to the batch login to the users in question, but since this does not give the user access to any Windows features (for example, the ability to use the remote desktop to connect to network access or interactive login into the system, if they somehow get access to the console), this should not be a problem.

0
source

All Articles