same, after you configure the IIS, you can still use Request.ServerVariables["LOGON_USER"] or HttpContext.Current.User.Identity.Name or Page.User.Identity.Name, seehttp://www.dotnetjunkies.com/quickstart/aspplus/doc/windowsauth.aspx<configuration>
<system.web>
<authentication mode="Windows" />
</system.web>
</configuration>
<system.web>
<authentication mode="Windows" />
</system.web>
</configuration>
Response.Write (User.Identity.Name);
如果已登录域的话,就域帐号,否则就是Guest
你可以加上
if (User.Identity.Name=="Guest"){
Response.Write ("您还没有登录域呢!");
Response.End();
}
你可以注意一下,系统用户中的internet来宾,与Guest帐号,如果你把这两个关啦,非域用户就完全进不来啦