Windows Authentication - Allow anyone
<p>In an ASP.NET, C# application, i'd like to get the user's login. So i set up windows authentication, and because it's ONLY to get the login, i allowed (i think ?) anyone.</p>

<pre><code>    &lt;anonymousIdentification enabled="false"/&gt;
&lt;authentication mode="Windows" /&gt;
&lt;identity impersonate ="true"/&gt;
&lt;authorization&gt;
  &lt;allow users="*"/&gt;
  &lt;deny users="?"/&gt;
&lt;/authorization&gt;
</code></pre>

<p>And locally, it was working as i expected, the user wasn't getting any form requesting credentials or something, but when i deployed my project to a distant IIS, even with anonymous login disabled, impersonation enabled, and the same config file, it asks the credential </p>

<p>why :(</p>

<p>EDIT : to be more precise, my website is an intranet, and isn't supposed to ever get out of local network.</p>