In our current Jaspersoft 6.3 install, we setup LDAP auth with our AD using an xml file in the WEB-INF folder under the jasperserver-pro folder. When I try this same thing with our new install of Jaspersoft 7.2 , LDAP won't work.
Error in jasperreportstomcat-stdout.<Date>.log under apache-tomcat\logs:
[INFO|org.springframework.security.ldap.SpringSecurityLdapTemplate|SpringSecurityLdapTemplate] Ignoring PartialResultException
[DEBUG|org.springframework.security.authentication.ProviderManager|ProviderManager] Authentication attempt using com.jaspersoft.jasperserver.multipleTenancy.MTDaoAuthenticationProvider
[DEBUG|org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler|SimpleUrlAuthenticationFailureHandler] Redirecting to /login.html?error=1
Release : 17.3
Component : JASPERSOFT REPORTS FOR SERVICE MANAGEMENT
Different LDAP configuration and file is needed in 7.2
1. Go to the folder where jasper 7.2 has been installed\samples\externalAuth-sample-config
2. Copy sample-applicationContext-externalAuth-LDAP-mt.xml to \jasperreports-server-7.2.0\apache-tomcat\webapps\jasperserver-pro\WEB-INF\ and rename it to applicationContext-externalAuth-LDAP-mt.xml
3. Edit the file, applicationContext-externalAuth-LDAP-mt.xml and set in this file the same LDAP configuration you set in the applicationContext-externalAuth-LDAP-mt.xml for 6.3.
You can take as an example the information under "Configuring Active Directory Beans" in the following link
https://techdocs.broadcom.com/us/en/ca-enterprise-software/business-management/business-intelligence/7-1-1/administration/configuring-ldap-authentication.html#concept.dita_f0f4983850d34114efd9c5ef9ced4215698a36d2_AuthenticationwithMicrosoftActiveDirectory
And/or compare the files to see where LDAP is configured in the .xml
4. Modify applicationContext-externalAuth-LDAP-mt.xml under <bean id="userSearch
from:
<value>(sAMAccountName=(0))</value>
to:
<value>(sAMAccountName={0})</value>
5. Save Changes and restart JasperServer services
Important: If not using SSO.
To remove the SSO configuration: Move the applicationContext-externalAuth-template-mt.xml from <tomcat-folder>\webapps\<js-webapp>\WEB-INF to <tomcat-folder>\webapps\<js-webapp>\SSO folder