0
有没有一种方法可以自动登录谁登录到Active Directory中的用户,而不要求他们使用登录对话框。没有弹出式窗口的Active Directory自动登录
由于有5种不同的登录方法,我无法将Auth方法设置为窗口。
感谢
有没有一种方法可以自动登录谁登录到Active Directory中的用户,而不要求他们使用登录对话框。没有弹出式窗口的Active Directory自动登录
由于有5种不同的登录方法,我无法将Auth方法设置为窗口。
感谢
我可以自动登录只能获得IE浏览器和cookies来工作..
这是从web.config片段,这可能有助于:
<!-- roles -->
<roleManager enabled="true" defaultProvider="AuthCookieRoleManager">
<providers>
<clear/>
<add name="AuthCookieRoleManager" type="CustomWeb.CustomAuthCookieRoleManager"/>
</providers>
</roleManager>
<authentication mode="Forms">
<forms loginUrl="Logon.aspx" name="ADAuth" timeout="10" path="/" />
</authentication>
<authorization>
<deny users="?"/>
<allow users="*"/>
</authorization>
<identity impersonate="true"/>
<!-- roles -->
<location path="Allocation">
<system.web>
<authorization>
<allow roles="CustomRoleX"/>
<deny users="*"/>
</authorization>
</system.web>
</location>
如果这样做不符合你的要求,我想你必须定制提供商..
因为你有5个登录方法,你怎么知道你应该登录一些用户而不提示?域认证的用户不应该得到一个登录对话框? – 2009-10-21 10:54:11
很多,如果他们在AD上,然后登录他们,如果没有他们到登录页面。 – LiamB 2009-10-21 11:26:32
http://beensoft.blogspot.com/2008/06/mixing-forms-and-windows-authentication.html – LiamB 2009-10-21 11:32:57