0

개인 응용 프로그램 계정 (개별 사용자 계정 인증 유형)은 System.Web.Security.ActiveDirectoryMembershipProvider와의 LDAP 연결을 사용하여 사용자 정의 로그인 화면에서 활성 디렉토리 로그인을 사용합니다asp.net C# MVC 5 - 활성 디렉토리 사용자 로그 오프

내가 응용 프로그램

에 로그인 할 수 있습니다하지만 응용 프로그램 여기

에서 로그 아웃 할 수 없습니다 나는 내 로그 오프 코드

[HttpPost] 
    [ValidateAntiForgeryToken] 
    public ActionResult LogOff() 
    { 
     AuthenticationManager.SignOut(); 
     return RedirectToAction("Index", "Home"); 
    } 
,

내 web.config 파일은 다음과 같습니다

<authentication mode="Forms"> 
     <forms name=".ADAuthCookie" loginUrl="~/Account/Login" timeout="45" slidingExpiration="false" protection="All" /> 
    </authentication> 
    <membership defaultProvider="ADMembershipProvider"> 
     <providers> 
     <clear /> 
     <add name="ADMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider" connectionStringName="ADConnectionString" attributeMapUsername="sAMAccountName" connectionUsername="ldapnew" connectionPassword="abcd123!" /> 
     </providers> 
    </membership> 
    </system.web> 
    <connectionStrings> 
    <add name="ADConnectionString" connectionString="LDAP://10.0.1.10:379/ou=General,dc=abc,dc=local" /> 
    </connectionStrings> 

날이 코드를 해결하기 위해 도와주세요?

답변

0

우리는 이것을 다르게하고 있습니다. ADFS 로그 아웃 페이지로 리디렉션해야합니다.

관련 문제