I have a web application (hosted in IIS) that talks to a Windows service. The Windows service is using the ASP.Net MVC Web API (self-hosted), and so can be communicated with over http using JSON. The web application is configured to do…
I want to get user name using Windows authentication
Actually, I implemented "Sign in as different user", when click this button Windows security will appear there we can give credentials.
In that time if I give some other credential it is taking…
There are a couple of questions similar to this on stack overflow but not quite the same.
I want to open, or create, a local group on a win xp computer and add members to it, domain, local and well known accounts. I also want to check whether a…
Some Windows APIs return a primary token and some return an impersonation token. Some APIs require a primary token while others require an impersonation token.
For example, LogonUser usually returns a primary token, except when using…
Is there a tool to generate SDDL (Security Descriptor Definition Language) strings? I'd like to create them through Windows' Security property sheet or something similar.
In order to install a new property page into the Active Directory SnapIn, I need to write into the following registry key of W2K8 R2 (as documented by…
Is it possible to apply (and remove) Windows group policy settings using .NET?
I am working on an application that needs to temporarily put a machine into a restricted, kiosk-like state. One of the things I need to control is access to USB drives…
I'm having some issues with a WCF service and Impersonation, I've distilled this to a simple method below. The WCF service is currently self hosted in an exe. The exception message is "Either a required impersonation level was not provided, or the…
I installed IntelliJ IDEA 2016.3 Community Edition and I created a simple Java class containing a main method that just prints a message. When I run that "program", the following window appears:
Windows Firewall has blocked some features of this…
Searching around the windows authentication methods and protocols, i decided to understand the exact difference between Negotiate, Kerberos, and NTLM used in a simple executable file before liking it with IIS and Web Authentication.
I reached to…
I'm trying to use LsaLogonUser to create an interactive logon session, but it always returns STATUS_INVALID_INFO_CLASS (0xc0000003). From what I have found in searching online, the memory layout of the KERB_INTERACTIVE_LOGON structure is tricky, but…
Our organization recently obtained an EV code signing certificate. It did give us instant SmartScreen trust, but 2 things still happen:
A minor annoyance was Chrome that issued a warning file.exe is not commonly downloaded and may be dangerous to…
(using C#, Web API, SQL Server2012 w/report server, authentication is NTLM)
I am getting an intermittent error when attempting to download a report (as an excel document) from SSRS. I build out the correct URL to render the report like:…
I'm building an app to auto unlock/lock a workstation based on proximity to a mobile app. The solution would be similar to the Microsoft app described here, so I'm pretty sure it's possible.
What API can I use to programmatically unlock a Windows…
I am using the latest version of Microsoft Edge (Version 81.0.416.68 (Official Build) (64-bit)). When I'm trying to login a specific site, not for all sites, it's popping up the "Windows Security" dialog followed "Sign in to access this site" asking…