Questions tagged [windows-identity]

Use this tag to better reference questions about WindowsIdentity allowing to encapsulate information about Windows accounts.

The WindowsIdentity object encapsulates information about Windows accounts. You use the WindowsIdentity object if you want to make authorization decisions based on a user's Windows account information.

For example, using WindowsIdentity and WindowsPrincipal objects, you can write an application that requires all users to be currently validated by a Windows NT or Windows 2000 domain. You can also allow certain domain accounts to access your application while denying access to others.

To find more information :

204 questions
0
votes
1 answer

Why does WCF OperationContext gets wrong WindowsIdentity

I use the below snippet of code to fetch the client user name in my WCF service. On one of my servers, I am getting the wrong client name. My client is Win7 talking to Server 2008R2 in a workgroup configuration and both machines have users Dave and…
Dave
  • 1,822
  • 2
  • 27
  • 36
0
votes
1 answer

Username and password authentication for WIF (Windows Identity Foundation) in ASP.NET MVC

We have two existing legacy web applications, one for the intranet using windows authentication within the domain, and one internet application, performing a custom web forms username + password based authentication. Now a new web applications is…
thmshd
  • 5,729
  • 3
  • 39
  • 67
0
votes
1 answer

WindowsIdentity.GetCurrent().Name returns machine name rather than windows user name

I am calling a web service application (.asmx) running in a virtual directory on an IIS 7.5 (for development purposes I only have IIS 5.1 but am hoping for some help anyway). Calling my ws when running from within VS2010…
CJe
  • 1,928
  • 3
  • 24
  • 53
0
votes
1 answer

Generate SWT token, and sign it, from IClaimsPrincipal

I would like to create a SWT token based on the claims in: IClaimsPrincipal principal = (IClaimsPrincipal)User; IClaimsIdentity identity = (IClaimsIdentity)principal.Identity; I have found code for validating a swt token, but haven't been able to…
Poul K. Sørensen
  • 16,950
  • 21
  • 126
  • 283
0
votes
1 answer

WindowsIdentity of Client User

I am programming a web application for a company, they require that the user should not enter any username and password, the user should be allowed to login to the system by their windows identity. i have tried WindowsIdenity.GetCurrent() , its…
msytNadeem
  • 173
  • 1
  • 4
  • 15
-1
votes
1 answer

Which all SQL Server ACLs I am part of?

I need to know in which all SQL ACLs my Windows ID has been added to?
-1
votes
1 answer

Impersonation in visual c++

I need to impersonate different user in my c++ application. I am using following code to this. try { IntPtr tokenHandle = IntPtr(0); bool returnValue = LogonUser(username, domain, password, LOGON32_LOGON_INTERACTIVE,…
-1
votes
2 answers

Windows Impersonation fails silently with no error and ends execution

I am using the below to impersonate users on Windows 7. This code is compiled into a dll and called from python. Generally it works, but recently we have been seeing the main execution fail and have traced it back to the…
dashstar
  • 71
  • 1
  • 2
  • 8
-2
votes
1 answer

Win2K8 R2, out-of-order SID

how comes that the SID on a domain are out-of-order ? by out-of-order I mean that the Relative-ID (the very last part of the SID) of some recently created accounts is lower than the one of much older accounts. I always though the Relative-ID was…
1 2 3
13
14