RHEVM : Slow AD authentication caused by java exception "InvalidNameException"

Latest response

Hi

 

Version 3.0.7

We are expeiencing slow AD authentication times (6-7secs) when logging into the admin portal.  Have noticed java exception being thrown in rhevm.log. "InvalidNameException" .  Any idea what might be the cause ?  :-

 

2012-11-19 16:44:31,765 ERROR [org.ovirt.engine.core.bll.adbroker.DirectorySearcher] (http-0.0.0.0-8443-6) Failed ldap search server LDAP://mg3domp01.mandg.co.uk:389 due to org.springframework.ldap.InvalidNameException: Invalid name: cn=APPDL - Microsoft Visual C++ Redistributable 2008 SP1,ou=Application DL Groups,ou=Application GG Groups,ou=Groups,dc=mandg,dc=co,dc=uk; nested exception is javax.naming.InvalidNameException: Invalid name: cn=APPDL - Microsoft Visual C++ Redistributable 2008 SP1,ou=Application DL Groups,ou=Application GG Groups,ou=Groups,dc=mandg,dc=co,dc=uk. We should try the next server
org.springframework.ldap.InvalidNameException: Invalid name: cn=APPDL - Microsoft Visual C++ Redistributable 2008 SP1,ou=Application DL Groups,ou=Application GG Groups,ou=Groups,dc=mandg,dc=co,dc=uk; nested exception is javax.naming.InvalidNameException: Invalid name: cn=APPDL - Microsoft Visual C++ Redistributable 2008 SP1,ou=Application DL Groups,ou=Application GG Groups,ou=Groups,dc=mandg,dc=co,dc=uk
        at org.springframework.ldap.support.LdapUtils.convertLdapException(LdapUtils.java:126)
        at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:266)
        at org.springframework.ldap.core.support.AbstractContextSource.getContext(AbstractContextSource.java:106)
        at org.ovirt.engine.core.bll.adbroker.LDAPTemplateWrapper.pagedSearch(LDAPTemplateWrapper.java:125)

...

...

...
        (ActiveRequestResponseCacheValve.java:74)
        at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:47)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:599)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:451)
        at java.lang.Thread.run(Thread.java:662)
Caused by: javax.naming.InvalidNameException: Invalid name: cn=APPDL - Microsoft Visual C++ Redistributable 2008 SP1,ou=Application DL Groups,ou=Application GG Groups,ou=Groups,dc=mandg,dc=co,dc=uk
        at javax.naming.ldap.Rfc2253Parser.parseAttrType(Rfc2253Parser.java:130)
        at javax.naming.ldap.Rfc2253Parser.doParse(Rfc2253Parser.java:83)
        at javax.naming.ldap.Rfc2253Parser.parseDn(Rfc2253Parser.java:45)
        at javax.naming.ldap.LdapName.parse(LdapName.java:772)
        at javax.naming.ldap.LdapName.<init>(LdapName.java:108)
        at com.sun.jndi.ldap.LdapNameParser.parse(LdapNameParser.java:21)
        at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:279)
        at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:175)
        at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:193)
        at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
        at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:134)
        at org.springframework.ldap.core.support.LdapContextSource.getDirContextInstance(LdapContextSource.java:43)
        at org.springframework.ldap.core.support.AbstractContextSource.createContext(AbstractContextSource.java:254)
        ... 182 more

Responses