Upgrading MySQL Enterprise Monitor (MEM) to 3.2 Broke LDAP Login (Doc ID 2138253.1)

Last updated on NOVEMBER 06, 2016

Applies to:

MySQL Enterprise Monitor - Version 3.0 to 3.2 [Release 3.0 to 3.2]
Information in this document applies to any platform.

Symptoms

Issue was found in this particular version 3.0.25.3228, but most likely also exists for other MEM versions.

After MEM migration to 3.2 no LDAP login stop working.

In the MEM interface the error is displayed when using a prior working LDAP user:

Login is rejected with "U0010 - The username and password combination was not found" error.

In the MEM logs we can see a Null Point exception:

2016-05-09 14:48:13,639 ERROR [http-nio-18443-exec-49:org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[defaultServlet]] Servlet.service() for servlet [defaultServlet] in context with path [] threw exception
java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at java.util.Arrays$ArrayList.<init>(Arrays.java:3813)
at java.util.Arrays.asList(Arrays.java:3800)
at org.springframework.security.ldap.userdetails.Person$Essence.setCn(Person.java:112)
at org.springframework.security.ldap.userdetails.Person$Essence.<init>(Person.java:83)
at org.springframework.security.ldap.userdetails.InetOrgPerson$Essence.<init>(InetOrgPerson.java:179)
at com.mysql.etools.monitor.authentication.SpringExternalAuthenticator$SpringExternalAdapter$CustomPersonContextMapper.mapUserFromContext(SpringExternalAuthenticator.java:627)
at org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider.authenticate(AbstractLdapAuthenticationProvider.java:82)
at com.mysql.etools.monitor.authentication.SpringExternalAuthenticator$SpringExternalAdapter.authenticate(SpringExternalAuthenticator.java:211)
at com.mysql.etools.monitor.authentication.SpringExternalAuthenticator.authenticate(SpringExternalAuthenticator.java:705)
at com.mysql.etools.monitor.authentication.NegativeResponseAuthCache.authenticate(NegativeResponseAuthCache.java:67)
at com.mysql.etools.monitor.bo.UserManager.externalAuthenticate(UserManager.java:413)
at com.mysql.etools.monitor.bo.UserManager.authenticate(UserManager.java:153)
at com.mysql.etools.monitor.bo.UserManager.authenticate(UserManager.java:571)
at sun.reflect.GeneratedMethodAccessor536.invoke(Unknown Source)

And in Audit log (MYLDAPUSER is a previous working LDAP USER):

2016-05-11 07:52:45,859 WARN [http-nio-18443-exec-14:com.mysql.etools.security.Auditor] UserMYLDAPUSER@192.168.0.2 failed login

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms