It's not a secret anymore!
The moose likes JForum and the fly likes logout problem  with ldap Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "logout problem  with ldap" Watch "logout problem  with ldap" New topic

logout problem with ldap

vinayak yedage

Joined: Jun 19, 2013
Posts: 3

I have implemented the SSO and it is working well. but i am facing one problem that when i click on logout it still show showing user is logged in

How can this be performed?

i did many try outs but still problem is not solved

JForumExecutionContext.getRequest().getSessionContext().invalidate(); //in -logout method

auto.login.enabled = false // in

i change redirect link in logout method but when user click on back it shows same page with user logged in

but this didnt work file contains : -

authentication.type = sso
login.authenticator = net.jforum.sso.LDAPAuthenticator
auto.login.enabled = false
sso.implementation = net.jforum.sso.RemoteUserSSO
sso.password.attribute = password = email = sso@user
sso.default.password = sso
sso.redirect = =
ldap.authentication = EXTERNAL
ldap.factory = com.sun.jndi.ldap.LdapCtxFactory
ldap.login.prefix = sAMAccountName=
ldap.login.suffix = OU=PLM,OU=TGSPUNE,DC=tgspune,DC=local
ldap.server.url = ldap://intgs-dc-02 = mail
ldap.lookup.prefix = sAMAccountName=
ldap.lookup.suffix = OU=PLM,OU=TGSPUNE,DC=tgspune,DC=local

header.htm contains follwing htm code
<#if sso && logged>
<a id="logout" style="color:#ffffff;" class="mainmenu" href="${JForumContext.encodeURL("/user/logout")}">    ${I18n.getMessage("ForumBase.logout")} [${session.username}]    </a>
</#if> contains follwing logout code
public void logout()
UserSession userSession = SessionFacade.getUserSession();
SessionFacade.storeSessionData(userSession.getSessionId(), JForumExecutionContext.getConnection());
// JForumExecutionContext.getRequest().getSessionContext().invalidate();
// Disable auto login
//System.out.println("SessionFacade length : - "+SessionFacade.getAllSessions().size());
+ "/forums/list"
+ SystemGlobals.getValue(ConfigKeys.SERVLET_EXTENSION));

if anybody faces this problem then please reply

Thanks and regards
I agree. Here's the link:
subject: logout problem with ldap
It's not a secret anymore!