Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AD Username or ID
Message
De
04/08/2020 15:14:47
 
 
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01675483
Message ID:
01675537
Vues:
44
>As was discussed in this thread that without impersonating an ASP.NET page does not get the username (AD/PC) for a person who is logged into the PC (not the service that runs the page).
>
>My question is, what type of account (user ID and password) I should ask the customer IT to provide, in order to impersonate this account and try getting the AD username?

From what I've seen, spread over several different threads:

1. The only reliable way to get what you want is to use Windows Authentication in ASP.NET

2. If that's not working, you need to troubleshoot it. My understanding is with default permissions IIS should be able to query AD and otherwise operate to support WA. Maybe company IT has locked IIS down too hard. Maybe you need to check, in detail, configuration settings for WA, or otherwise troubleshoot with Dr. Google

3. Once you have WA working, this link https://richhewlett.com/2011/02/15/getting-a-users-username-in-asp-net/ explains your options . You want scenarios 2 or 4 i.e. you want your return value to be "MYDOMAIN\USER1"
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform