Hello,
I have been trying to get LDAP to work with no luck. I can connect to LDAP using other scripts and using Apache Directory Studio, but can’t login using Axelor.
Application.properties file is set with the correct LDAP server values.
This is what I’ve been able to get from the logs (Everything is set to logging ALL) :
Blockquote
2018-11-19 01:23:25.584 TRACE 25110 — [http-nio-8080-exec-1] .i.SessionFactoryImpl$SessionBuilderImpl : Opening Hibernate Session. tenant=null, owner=null
2018-11-19 01:23:25.584 DEBUG 25110 — [http-nio-8080-exec-1] o.h.r.j.i.LogicalConnectionManagedImpl :hibernate.connection.provider_disables_autocommit
was enabled. This setting should only be enabled when you are certain that the Connections given to Hibernate by the ConnectionProvider have auto-commit disabled. Enabling this setting when the Connections do not have auto-commit disabled will lead to Hibernate executing SQL operations outside of any JDBC/SQL transaction.
2018-11-19 01:23:25.585 TRACE 25110 — [http-nio-8080-exec-1] org.hibernate.internal.SessionImpl : Opened Session [322b28f1-cba9-4293-86bc-ae139801b7d6] at timestamp: 6318451120472064
2018-11-19 01:23:25.585 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.web.servlet.OncePerRequestFilter : Filter ‹ Key[type=org.apache.shiro.guice.web.GuiceShiroFilter, annotation=[none]] › not yet executed. Executing now.
2018-11-19 01:23:25.585 TRACE 25110 — [http-nio-8080-exec-1] o.a.shiro.mgt.DefaultSecurityManager : Context already contains a SecurityManager instance. Returning.
2018-11-19 01:23:25.585 TRACE 25110 — [http-nio-8080-exec-1] o.a.shiro.mgt.DefaultSecurityManager : No identity (PrincipalCollection) found in the context. Looking for a remembered identity.
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] o.apache.shiro.web.servlet.SimpleCookie : No ‹ rememberMe › cookie value
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] o.a.shiro.mgt.DefaultSecurityManager : No remembered identity found. Returning original context.
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.subject.support.DelegatingSubject : attempting to get session; create = false; session is null = false; session has id = true
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.subject.support.DelegatingSubject : attempting to get session; create = false; session is null = false; session has id = true
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.subject.support.DelegatingSubject : attempting to get session; create = false; session is null = false; session has id = true
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.subject.support.DelegatingSubject : attempting to get session; create = false; session is null = false; session has id = true
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.subject.support.DelegatingSubject : attempting to get session; create = false; session is null = false; session has id = true
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] org.apache.shiro.util.ThreadContext : Bound value of type [org.apache.shiro.web.subject.support.WebDelegatingSubject] for key [org.apache.shiro.util.ThreadContext_SUBJECT_KEY] to thread [http-nio-8080-exec-1]
2018-11-19 01:23:25.586 TRACE 25110 — [http-nio-8080-exec-1] org.apache.shiro.util.ThreadContext : Bound value of type [org.apache.shiro.web.mgt.DefaultWebSecurityManager] for key [org.apache.shiro.util.ThreadContext_SECURITY_MANAGER_KEY] to thread [http-nio-8080-exec-1]
2018-11-19 01:23:25.587 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.web.servlet.AbstractShiroFilter : Resolved a configured FilterChain for the current request.
2018-11-19 01:23:25.587 TRACE 25110 — [http-nio-8080-exec-1] o.a.s.web.servlet.OncePerRequestFilter : Filter ‹ null › not yet executed. Executing now.
2018-11-19 01:23:25.587 TRACE 25110 — [http-nio-8080-exec-1] o.a.shiro.web.filter.PathMatchingFilter : Attempting to match pattern ‹ /css/’ with current requestURI ‹ /css/application.login.css ›…
2018-11-19 01:23:25.587 TRACE 25110 — [http-nio-8080-exec-1] o.a.shiro.web.filter.PathMatchingFilter : Current requestURI matches pattern '/css/ ›. Determining filter chain execution…
2018-11-19 01:23:25.587 TRACE 25110 — [http-nio-8080-exec-1] o.a.shiro.web.filter.PathMatchingFilter : Filter ‹ null › is enabled for the current request under path ‹ /css/** › with config [null]. Delegating to subclass implementation for ‹ onPreHandle › check.
2018-11-19 01:23:25.587 TRACE 25110 — [http-nio-8080-exec-1] o.apache.shiro.web.servlet.AdviceFilter : Invoked preHandle method. Continuing chain?: [true]
2018-11-19 01:23:25.588 TRACE 25110 — [http-nio-8080-exec-1] o.apache.shiro.web.servlet.AdviceFilter : Successfully invoked postHandle method
2018-11-19 01:23:25.588 TRACE 25110 — [http-nio-8080-exec-1] o.apache.shiro.web.servlet.AdviceFilter : Successfully invoked afterCompletion method.
2018-11-19 01:23:25.588 TRACE 25110 — [http-nio-8080-exec-1] org.hibernate.internal.SessionImpl : Closing session [322b28f1-cba9-4293-86bc-ae139801b7d6]
2018-11-19 01:23:25.588 TRACE 25110 — [http-nio-8080-exec-1] o.h.e.jdbc.internal.JdbcCoordinatorImpl : Closing JDBC container [org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl@4863f575]
2018-11-19 01:23:25.588 TRACE 25110 — [http-nio-8080-exec-1] o.h.r.j.i.ResourceRegistryStandardImpl : Releasing JDBC resources
2018-11-19 01:23:25.589 TRACE 25110 — [http-nio-8080-exec-1] o.h.r.j.i.LogicalConnectionManagedImpl : Closing logical connection
2018-11-19 01:23:25.589 TRACE 25110 — [http-nio-8080-exec-1] o.h.r.j.i.LogicalConnectionManagedImpl : Logical connection closed
Blockquote
Any idea on where to look or what to change to get it working ?
Thanks.