Questions tagged [windows-principal]

24 questions
1
vote
3 answers

How can i get the WindowsIdentity or WindowsPrincipal of a WCF Claim / SecurityIdentifier (SID)?

I'm trying to allow all users in the Administrators group access through WCF. internal sealed class AuthorizationManager : ServiceAuthorizationManager { public override bool CheckAccess(OperationContext operationContext) { …
Simmen
0
votes
0 answers

How to create a private namespace that can be opened in UWP/AppContainer app?

From the full trust app I create the namespace like this: string boundaryName = Guid.NewGuid().ToString(); using var boundary = new BoundaryDescriptor(boundaryName, // tried None aka 0 too …
LOST
  • 2,956
  • 3
  • 25
  • 40
0
votes
0 answers

Working around "The trust relationship between the primary domain and the trusted domain failed" when connectivity is lost with IsInRole()?

We had an issue where network connectivity was lost between trusted domains. Even by just using the sample code (with slight updates) on the documentation for WindowsPrincipal.IsInRole…
jmlumpkin
  • 922
  • 2
  • 14
  • 34
0
votes
0 answers

How do I return the DISPLAY NAME of every group a member belongs to in Active Directory in c# .net?

I have seen solutions for getting back all groups a user belongs to, however I cant find a solution that returns them back with their respective display names. I know that you can iterate over each group and get additional info such as display name,…
0
votes
1 answer

With regards to WindowsPrincipal, are groups considered roles?

While looking at ways to perform role based access control in a Winforms application, I came across some solutions using WindowsIdentity and WindowsPrincipal. It got me thinking about the differences between a group and a role, and there certainly…
Mr Moose
  • 5,946
  • 7
  • 34
  • 69
0
votes
1 answer

Verify logged in user against exchange distribution list or AD groups in c#

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 proper results. If I add a user to the DL and then check whether the user is in the DL, it gives me…
Ashish
  • 2,544
  • 6
  • 37
  • 53
0
votes
2 answers

Find if specified user (string) is a member of local Administrators group

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, this is being executed in my public void Form1_Load(object sender, EventArgs e) {} so it is done…
crlic306
  • 35
  • 5
0
votes
1 answer

Extending WindowsIdentity/WindowsPrincipal in

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 WindowsPrincipal respectively) in order to provide additional information about the user logged on,…
0
votes
2 answers

How can I get a list of Active Directory Users (Only the Users that appear in the windows Logon Screen)

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 Principle library & WMI Select commands. I keep getting Admministrator, Guest & some other VUSRNEIL-DELL.…
Neil Hobson
  • 515
  • 1
  • 7
  • 14
1
2