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