Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
45 views

I’m building a Windows installer (WPF, .NET 8) that needs to validate a chosen account (either a domain user or a gMSA) can write to several directories before installation. The simplest way I’ve ...
Adam's user avatar
  • 133
1 vote
0 answers
76 views

I am trying to perform file operations (upload, download, delete) in a user's file system using impersonation in C#. After researching, I came across the WindowsIdentity.RunImpersonated method, which ...
Jack Rono dez's user avatar
1 vote
1 answer
518 views

Using this in PowerShell will get the WindowsIdentity of myself in PowerShell. [System.Security.Principal.WindowsIdentity]::GetCurrent() This will contain the following members TypeName: System....
Dennis's user avatar
  • 2,128
0 votes
1 answer
135 views

If a Windows username is created in a [email protected] email syntax, the System.Security.Principal.WindowsIdentity.GetCurrent().Name value returned is in the DOMAIN\UserName syntax. How does Netplwiz ...
Marc George's user avatar
1 vote
0 answers
336 views

I have a situation where a (legacy) .Net Framework Web API needs to make an impersonated call into a separately-maintained .Net library. The call will perform a long running (~1 sec) operation, so it ...
jproch's user avatar
  • 321
0 votes
1 answer
1k views

We have a web app that runs on our corporate intranet. I get the following error when I try to access a network path in my MVC controller: Access to the path '\Server001\SharedFiles\CA' is denied. The ...
Ryan Farahani's user avatar
2 votes
0 answers
573 views

We are developing Java web application, it will be deployed and used in the pure Windows platform. Our use case is, couple of licensed Tools/Software in Server needs to be accessed by the associates ...
Chandru's user avatar
  • 91
1 vote
0 answers
1k views

I have a website where I click a button and a process its supposed to start. The problem is that I have to start that new process with other user and its starting with the user currently running the ...
ManelAcacio's user avatar
0 votes
1 answer
232 views

I have a .net core application that is hosted on IIS. This application utilizes System.Management to connect to other machines to gather information. I am noticing that some of my calls are getting an ...
Richard Eagle's user avatar
1 vote
0 answers
656 views

I'm trying to authenticate a user so that he can use the MS Graph API. I'm using the Integrated Windows Provider method. When the application is deployed on a server, it doesn't work, because it's ...
IKIKN's user avatar
  • 87
0 votes
1 answer
511 views

I was looking to use Windows Authentication for a Blazor Server app, but hit a small issue with the default Identity Name. i.e. when you used <AuthorizeView> Hi @context.User.Identity.Name &...
cjb110's user avatar
  • 1,531
2 votes
1 answer
4k views

Before I explain my problem, here's our scenario: Scenario We write software only for our intranet Windows users (currently managed by local Active Directory but in future it is possible we migrate to ...
Alois's user avatar
  • 431
1 vote
2 answers
1k views

I'm working on a service (C#) that receives session-change notifications (specifically SessionLogon). The only piece of information I get with that notification is SessionId. My ultimate goal is to ...
Scott Smith's user avatar
  • 4,016
0 votes
1 answer
872 views

I want to pick up the user that is currently logged on to my web site, in an API on a different site. I do not want to pass the Username via a parameter for security reasons. In my REST API I have ...
Gineer's user avatar
  • 2,418
2 votes
0 answers
286 views

I am Working on creation Windows Service using C#, running from System Account with background services. I need to perform some task via service which need user login info, which I intend to share ...
Pratik Patil's user avatar
0 votes
1 answer
404 views

I have an app that users would run locally on their desktop, which calls into an API on my server externally. I can obtain the user's Windows domain and name through the WindowsIdentity API. But I'd ...
mariocatch's user avatar
  • 8,723
0 votes
0 answers
52 views

I'm trying to send a WindowsIdentity to a Web service, but I have a compilation error I don't understand. Here is a minimal reproducible example: The folowing method is on the web service: ...
MrHeliose's user avatar
  • 128
1 vote
1 answer
1k views

I have two Windows accounts, my regular user-level one, and an Administrator one. As far as I know, there is no connection between the two in AD, other than my name. I normally log into my dev ...
DelphinusC's user avatar
0 votes
0 answers
792 views

I have a web application that has an HTML 5 front end that calls (via Ajax & JSON) to a .NET MVC web app. The goal is to allow domain users to automatically authenticate against Active Directory ...
Graham Harris's user avatar
0 votes
1 answer
325 views

I have two systems both running my C# client/server software code. I want to from Computer 1 create a process as a given Active Directory domain user on Computer 2 without having to have my client/...
Paul W.'s user avatar
  • 309
1 vote
0 answers
369 views

I'm writing a console application in C# .Net where i need to do some impersonation of a Windows AD account. I'v managed to set the WindowsIdentity successfully, however there is a certain Login() ...
ZiggY's user avatar
  • 111
0 votes
1 answer
444 views

We have a pure html page running in our IIS, and we would like to know what logged-in users are accessing the page. By "logged-in" users I mean a user that looged on to our intranet in their Windows ...
fdkgfosfskjdlsjdlkfsf's user avatar
5 votes
1 answer
4k views

How can we use WindowsIdentity in .NET Core 2.1? It was available in 2.0 .NET API Browser https://learn.microsoft.com/en-us/dotnet/api/?term=WindowsIdentity&view=netcore-2.0 WindowsIdentity is ...
Rookian's user avatar
  • 20.7k
14 votes
2 answers
5k views

I have an MVC site that allows logging in using both Forms login and Windows Authentication. I use a custom MembershipProvider that authenticated the users against Active Directory, the System.Web....
Guy Passy's user avatar
  • 782
2 votes
2 answers
3k views

It works locally but when I upload my website to an IIS server then it wont work: this is part of my config file which I thought it would work: <authentication mode="Windows"> </...
pancake's user avatar
  • 600

1
2 3 4 5