lightsailpro Posted May 14, 2013 Share Posted May 14, 2013 I saw the following in the What's new session about the external authentication approach. Could someone shed light on the detailed steps to set up LDAP. I renamed sample-applicationContext-externalAuth-LDAP.xml to "applicationContext-externalAuth-LDAP.xml", plugin the parameter, then copy the file to apache-tomcatwebappsjasperserverWEB-INF. It did not work. Do I need turn on something in "applicationContext-security.xml"? I saw the following entry in the applicationContext-security.xml file, what does it mean? I am suprised that I could not find any relevant info the admin guide. I got the LDAP works in 4.7. I used the 4.7 file against 5.1, I got access denied error. Then noticed this comment. I am wondering if there is any change in 5.1 on the LDAP implementation. ==================########### For LDAP authentication in JasperReport Server 4.7. In JRS > 5.1, all configuration is included in a single file (see sample's) ================== Improved Single Sign-on (SSO) Support - A new customizable bean API leverages the Spring Security framework to simplify the creation and configuration of external authentication for JasperReports Server. To configure this new API, create a custom applicationContext file and place it in the WEB-INF directory. Sample files for LDAP and CAS are included in the standard distribution. Link to comment Share on other sites More sharing options...
mgeise Posted May 15, 2013 Share Posted May 15, 2013 Did you look at the JasperReports Server Authentication Cookbook for v5.1 under the Docs tab? There is a chapter in there on LDAP. Link to comment Share on other sites More sharing options...
bgroffen Posted May 15, 2013 Share Posted May 15, 2013 I'm having similair problems on this subject, after the upgrade from 5.0 to 5.1 i simply cant get my ldap to work properly anymore.It seems the files have changed too i cant get the ApplicationContext-security to work as LDAP anymore.When i reconfigured the ApplicationContext-security file as it used to be (working) on 5.0 it just gives me an Blue screen Access Denied in the webapp right after loggin in.maybe u fixed the problem yet? Link to comment Share on other sites More sharing options...
lightsailpro Posted May 15, 2013 Author Share Posted May 15, 2013 I have not fixed yet. With the approach I used in 4.7 for 5.1, I got the same Blue screen Access Denied page. Link to comment Share on other sites More sharing options...
lightsailpro Posted May 15, 2013 Author Share Posted May 15, 2013 Finally got it working by following the instruction in the cookbook. By the way, the following two lines in the doc do not look right, need to use " around the Value. Also need to set the group serach correctly. Enalbling LDAP spring security debug helped a lot. Thanks.cn=Administrator,dc=example,dc=compassword Link to comment Share on other sites More sharing options...
bgroffen Posted May 16, 2013 Share Posted May 16, 2013 What file are you using now, the applicationcontext - security or the external auth ldap file? the solution didnt work at my case. but the enabling ldap spring security gave me some new leads of the the causes might be. Link to comment Share on other sites More sharing options...
bschundawat143 Posted May 16, 2013 Share Posted May 16, 2013 Please can you provide the xml file/syntax to put ldap userdn to us. we also tried as mentioned in the cookbook but that is not working Link to comment Share on other sites More sharing options...
lightsailpro Posted June 5, 2013 Author Share Posted June 5, 2013 Just put applicationContext-externalAuth-LDAP.xml in WEB-INF folder. You do not need to touch applicationContext-security.xml or other file if you just want the internal and LDAP. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now