Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 1881

Web.config "authentication mode="Windows"

$
0
0

Hi everybody

I have a problem, that I don´t understand, and I guess that I´m doing something wrong but I don´t know.

I have a website with ISS and ASP.net. This is running inside Control Domain, and I have this in my web.config

<system.web><authentication mode="Windows"/><identity impersonate="true"/><authorization>   <allow users="DOMAINNAME\UserName" />  <allow roles="BUILTIN\Administrators/>   <deny  users="*" /> </authorization></system.web>

but this code, give the following error

Access is denied.
  Description: An error occurred while accessing the resources required to serve this request. The server may not be configured for access to the requested URL.

 Error message 401.2.: Unauthorized: Logon failed due to server configuration.  Verify that you have permission to view this directory or page based on the credentials you supplied and the authentication methods enabled on the Web server.  Contact the Web server's administrator for additional assistance.

Then I change my code like this one

<system.web><authentication mode="Windows" /><identity impersonate="true"/> <authorization><allow users="*"/><deny users="?"/>        </authorization></system.web>

And now, I can access, the problem is that the browser not show me the login windows pop up. is it normal?


Viewing all articles
Browse latest Browse all 1881

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>