While looking at ways to perform role based access control in a Winforms application, I came across some solutions using WindowsIdentity and WindowsPr ...
While looking at ways to perform role based access control in a Winforms application, I came across some solutions using WindowsIdentity and WindowsPr ...
I'm using WindowsPrincipal's IsInRole method to check group memberships in WPF and Winforms apps. I'm generating an identity token which can be for an ...
I am trying to find if a user I identify is a member of the local Administrators group. But my code does nothing... Please see me code below. Also, ...
I have an application in MVC 4, ASP.NET 4.5 and Windows Authentication. I'm trying to extend the Identity and Principal objects (WindowsIdentity and W ...
The WindowsIdentity(string) constructor requires the username to be in username@domain.com format. But in my case I get the usernames from a DB in the ...
I tried to get computer principal name of a service running as Network Service with the following code. Since the domain name of my computer is Ser ...
At my company we have a custom HMI. This HMI can login using the domain of the computer if the user would like to. Here's the scenario we're currently ...
I am building a intranet application using MVC3 with a MSSQL backend. I have authentication and roles (through a custom roles provider) working proper ...
How can I get a list of Active Directory Users (Only the Users that appear in the windows Logon Screen) I have tried many methods using Windows Princ ...
When a user needs to enter their license key, we want to put it in HKLM if we can, and in HKCU if we cannot. If it is in HKLM then all users on the co ...
My local user account is in the Administrators group, and I wanted to simply figure out how a windows forms project would determine if I'm in the admi ...
I have a WPF client that connects to a WCF service, and I want to lock down some of the functionality so that only certain users can perform certain a ...
I am trying to work out why attribute based security isn't working as I'd expect in WCF and I suspect it might have something to do with the following ...
I am trying to verify whether the logged in user exists in a AD group or distribution list. I tried to use WindowsIdentity but that does not give me p ...
I'm trying to allow all users in the Administrators group access through WCF. ...
I would like to temporarily impersonate a domain user account to read in a file on a network drive from an ASP.NET site. I would rather not set up im ...
Is there a way to get a list of roles a Windows authenticated user is in, without explicitly checking by WindowsPrincipal.IsInRole method? ...
Under Windows Vista, when I check whether my current user account is in Administrators role, I am getting a negative, as shown in the following pictur ...
Does anybody know how to make WindowsPrincipal.IsInRole("domain\role") work with active directory universal groups? Let's say the current user is a m ...