我的Web应用程序设置为使用Windows身份验证,并将模拟设置为true。asp.net模拟设置
<authentication mode="Windows"/>
<identity impersonate="true"/>
当我在本地计算机(IIS6)上运行它时,我使用当前登录名访问Active Directory。
WindowsIdentity curIdentity = WindowsIdentity.GetCurrent();
WindowsPrincipal myPrincipal = new WindowsPrincipal(curIdentity);
但是,当我远程访问我的网站模拟似乎并没有工作;我显示用户所属的组 - 并获得一个非常短的列表!
我还需要什么?
...除非您使用的是Kerberos。 – JohnFx 2009-12-15 21:18:49
这是真的比这更复杂,你可以开始考虑委派等这样的工作来解决限制 – 2009-12-15 21:20:26
行,所以只是为了确认一些东西......没有办法得到(正确的)用户名而不使用kerberos? – 2009-12-15 22:36:15