Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

How can I prevent users from logging into a PC until a particular Windows Service has started?

I want to put a dependency for the Logon Screen's appearance on a the start
of a particular service.

How can I do this?

Thanks,

Geoff
0
gswitz
Asked:
gswitz
  • 2
1 Solution
 
fernandonajeraCommented:
Create your own gina.dll which is the dll that shows the dialog to log in.

See <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secauthn/security/gina.asp> for documentation about GINA.

See <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample98/html/vcsmpginastubsample.asp> for a working example.

Good luck, it is quite hard.
0
 
fernandonajeraCommented:
0
 
TheMCSECommented:
What OS are you targeting?  While writing your own GINA is a definite solution, I wonder if it might not be easier to just require the local NETLOGON service to wait on your specific service?  If you're using Win2K or newer, you can easily view the dependencies for a given service by running services.msc.  Adding a dependency is not much more challenging, but I don't think that there is a UI.  You can view the appropriate data at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\DependOnService in the registry.  The name entered here should be the short name of the service (as specified in the Services database).  Good luck!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now