Wow. I’m impressed you got a user authenticated with LDAP.
I don’t know of any testing that has done with LDAP or people using it. It’d be great if you could share what you’ve done and maybe we can get LDAP actually supported in moqui.
@deepak we are using LDAP with moqui and running into the same issue, pls find workaround below, this probably needs to be addressed
Error : “User is authenticated in session but hasLoggedOut elsewhere, logging out”
Cause: USER_ACCOUNT → HAS_LOGGED_OUT is set to ‘Y’ when using Logout
button; and UserFacadeImpl.groovy is doing an explicit logout and sending to
login screen when this value is Y
if (userAccount != null && “Y”.equals(userAccount.getNoCheckSimple(“hasLoggedOut”))) {
// logout user through Shiro, invalidate session, continue
logger.info(“User ${sesUsername} is authenticated in session but hasLoggedOut elsewhere, logging out”)
webSubject.logout()
// Shiro invalidates session, but make sure just in case
HttpSession oldSession = request.getSession(false)
if (oldSession != null) oldSession.invalidate()
this.session = request.getSession()
}
Workaround Solution: update USER_ACCOUNT SET HAS_LOGGED_OUT =‘N’ where USER_ID = ‘<USER_ID>’