Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Domain account vs. Windows account
Message
De
16/08/2020 21:26:04
 
 
Information générale
Forum:
Windows
Catégorie:
Sécurité
Divers
Thread ID:
01675628
Message ID:
01675773
Vues:
44
>Almost. First, thank you for following up.
>
>I found that in order for the page to be Windows Authenticated, the Anonymous Authentication has to be disabled. I found where (in the IIS -> MySite). After disabling Anonymous Authentication - finally - when I bring up a test page, it shows the value of IsAuthenticated as True. And it correctly shows who is logged in the PC (not page but the PC). But it only works if I show the page in Localhost. For example:
>http://localhost/test.aspx
>But if I replace the localhost (on customer server) to the name of the server it prompts me to enter a user name and password.

ISTR if Windows Authentication fails, an ASP.NET app will fall back to forms-based authentication (?) Sounds like something is still misconfigured or your test is not representative of the client's environment (context issue).

>I need it to work just like localhost.
>Now I am trying to figure - on my computer how to make it work. But I can't seem to make my test.aspx page to show on my computer with the computer name (as I do on customer server). For example:
>
>http://localhost:8080/test.aspx   
>
>Works!
>
>But
>http://dell2018:8080/test.aspx
>
>Shows Page Cannot be Loaded or displayed (don't remember exact message).

That sounds like a DNS issue, that your machine can't resolve the "dell2018" name. If you fire up a CMD window and run
nslookup dell2018
, what do you get?

>So, I am trying to figure how to make the page to be displayed on my Windows 7 just like on the customer server. So, that I can continue troubleshooting.
>Thank you!
>
>>Did you get this sorted?
>>
>>>We agree on that. I do need to fix it. I will go through the article step-by-step. Probably tomorrow; my head is spinning :)
>>>Thank you very much.
>>>
>>>>Clearly, WAuth is not working in your app - that needs to be fixed. You need to get HttpContext.Current.Request.IsAuthenticated to be True.
>>>>
>>>>In https://support.microsoft.com/en-ca/help/323176/how-to-implement-windows-authentication-and-authorization-in-asp-net there's a section "Configure Web application for Windows authentication" - have you gone through those steps? Specifically, if your app previously did not use WAuth you might have to reconfigure/rebuild it as described (e.g. step 9) - it looks like just adding the switch in web.config is not enough (?)
>>>>
>>>>Or, can you try building and running the test app as described in the article?
>>>>
>>>>>There is only one way to set up Windows authentication in the ASP.NET page:
>>>>>
>>>>><authentication mode="Windows" />  
>>>>>
>>>>>
>>>>>And I have it set in the web.config. But I have never get the HttpContext.Current.Request.IsAuthenticated to be True. It is always False, on my PC, on one customer network, on another customer network.
>>>>>
>>>>>Therefore the following paragraph of the article never works for me:
>>>>>
>>>>>Using Windows Authentication however enables the remote user to be authenticated (i.e. IsAuthenticated is
>>>>>true) automatically via their domain account and therefore the HttpContext.Current.Request user is set to that 
>>>>>of the remote clients user account, including the Identity object.
>>>>>
>>>>>
>>>>>I don't know what I need to do to have the HttpContext.Current.Request.IsAuthenticated return True.
>>>>>
>>>>>It could be that this is my problem.
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