search cancel

CABI refused to connect error after enabling LDAP integration


Article ID: 255210


Updated On:


DX NetOps CA Spectrum


After trying to integrate CABI with LDAP we are facing issue with starting the application.  When trying to open the CABI page we see:

"refused to connect" 


Release : Spectrum 21.2.12. Cabi


catalina.out shows

2022-11-23T16:05:17,643 ERROR ContextLoader,localhost-startStop-1:313 - Context initialization failed org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 94 in XML document from ServletContext resource [/WEB-INF/applicationContext-externalAuth-
-mt.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 94; columnNumber: 61; The entity name must immediately follow the '&' in the entity reference.

LineNumber: 94 of applicationContext-externalAuth-LDAP-mt3011.xml shows an un-escaped "&"

                <property name="groupSearchFilter" value="(&(member={1})(objectClass=group))"/>

The original doc shows it escaped as follows for reference

  <property name="groupSearchFilter" value="(&amp;(objectCategory=person)(objectClass=user)


Characters such as & need to be escaped in xml documents as &amp;

this is what needs to be changed. 

After making the change, navigate to the $CABIHOME/ directory and run the and to resolve the issue.

Additional Information

similar error: