8.1.0 ldap auth

Hi,

I am unsuccessfully trying to authenticate Jasperserver to my ldap server.

I used current jasperserver version 8.1.0, i copied file from samples to /opt/bitnami/jasperreports/WEB-INF/applicationContext-externalAuth-LDAP.xml

Changed logs to in /opt/bitnami/jasperreports/WEB-INF/log4j2.properties to:

# Security Logging
logger.com_jaspersoft_jasperserver_api_security.name=com.jaspersoft.jasperserver.api.security
logger.com_jaspersoft_jasperserver_api_security.level=INFO

 

and logs say:

2023-03-26T18:42:01,760  INFO JSLdapContextSource,main:76 -  URL 'ldap://192.168.62.30:7389/dc=gut,dc=xxxxx', root DN is 'dc=gut,dc=xxxx'
2023-03-26T18:42:11,045  WARN SecurityConfiguration,ajp-nio-127.0.0.1-8009-exec-1:194 - SECURITY for [INPUT-VALIDATION] is OFF
2023-03-26T18:42:11,047  WARN SecurityConfiguration,ajp-nio-127.0.0.1-8009-exec-1:194 - SECURITY for [SQL-INJECTION] is OFF
2023-03-26T18:42:11,048  WARN SecurityConfiguration,ajp-nio-127.0.0.1-8009-exec-1:194 - SECURITY for [ENCRYPTION] is OFF
2023-03-26T18:42:11,048  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:97 - casSingleSignOutFilter bean was not "dropped into" application context.  Using class com.jaspersoft.jasperserver.war.NullFilter instead.
2023-03-26T18:42:11,049  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:93 - Filter proxy bean nullFilter discovered.
2023-03-26T18:42:11,078  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:97 - proxyPreAuthenticatedProcessingFilter bean was not "dropped into" application context.  Using class com.jaspersoft.jasperserver.war.NullFilter instead.
2023-03-26T18:42:11,079  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:97 - proxyAuthenticationProcessingFilter bean was not "dropped into" application context.  Using class com.jaspersoft.jasperserver.api.security.EncryptionAuthenticationProcessingFilter instead.
2023-03-26T18:42:11,080  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:93 - Filter proxy bean proxyBasicProcessingFilter discovered.
2023-03-26T18:42:11,081  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:93 - Filter proxy bean proxyRequestParameterAuthenticationFilter discovered.
2023-03-26T18:42:11,083  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:97 - corsFilter bean was not "dropped into" application context.  Using class org.springframework.web.filter.CorsFilter instead.
2023-03-26T18:42:11,086  WARN JSDelegatingFilterProxy,ajp-nio-127.0.0.1-8009-exec-1:97 - proxyExceptionTranslationFilter bean was not "dropped into" application context.  Using class org.springframework.security.web.access.ExceptionTranslationFilter instead.
2023-03-26T18:42:49,677  WARN EncryptionAuthenticationProcessingFilter,ajp-nio-127.0.0.1-8009-exec-2:85 - Deprecated username parameter used to obtain it from request! switch to new parameter name.
2023-03-26T18:50:56,595  WARN EncryptionAuthenticationProcessingFilter,ajp-nio-127.0.0.1-8009-exec-9:85 - Deprecated username parameter used to obtain it from request! switch to new parameter name.

i dont know what "Deprecated username parameter used to obtain it from request! switch to new parameter name." could mean.

i attached my applicationContext-externalAuth-LDAP.xml.

could some tell me what i do wrong?

 

 

 

 

erik.dittert's picture
Joined: Sep 20 2013 - 7:12am
Last seen: 1 month 1 day ago

Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.

arai_4 - 2 months 1 day ago

1 Answer:

Hi, 

I did a diff between the file you attached here, and the LDAP Auth sample file for version 8.1, and looks like the sample file you started with is not the correct one. The correct sample file is the one with the word 'LDAP' in its name. Just take that one as a starting point, and give it a try. Be sure to remove the older file before placing the new one in there.  I have attached a snapshot where the file on the left is the correct sample file to use and the one on the right is your file. 

gvtibco's picture
115
Joined: Oct 27 2021 - 1:12pm
Last seen: 1 month 4 weeks ago
Feedback
randomness