czupet Posted March 15, 2013 Share Posted March 15, 2013 I am trying to configure JasperReports 5.0 to use Microsoft Active Directory / LDAP.But so far had no success. I don't get any errors in the log file, just a message on the screen "Invalid credentials supplied. Could not login to JasperReports Server." when I try to login with my network IDThe only examples I have found is for previous versions of JasperReports which was using Acegi framework and 5.0 is using Springs framework.Does anyone knows what am I doing wrong? Thank you.I am including my applicationContext-security.xml file Link to comment Share on other sites More sharing options...
ajinkya_c Posted March 15, 2013 Share Posted March 15, 2013 http://community.jaspersoft.com/wiki/secure-active-directoryldapldaps-authentication-groupshttp://community.jaspersoft.com/wiki/jasperreports-server-authentication-configuration Link to comment Share on other sites More sharing options...
ajinkya_c Posted March 15, 2013 Share Posted March 15, 2013 http://community.jaspersoft.com/wiki/how-integrate-jasperreports-server-ms-active-directory-ldap Link to comment Share on other sites More sharing options...
czupet Posted March 15, 2013 Author Share Posted March 15, 2013 Thank you for your help, but I am still stuggling.Here's my jasperserver.log fileI am not sure what this means! 2013-03-15 10:32:09,669 INFO DefaultSpringSecurityContextSource,Thread-1:56 - URL 'ldap://mydomain.com:389/dc=mydomain,dc=users,dc=com', root DN is 'dc=mydomain,dc=users,dc=com'2013-03-15 10:32:09,669 INFO DefaultSpringSecurityContextSource,Thread-1:56 - URL 'ldap://mydomain.com:389/dc=mydomain,dc=users,dc=com', root DN is 'dc=mydomain,dc=users,dc=com'2013-03-15 10:32:09,731 INFO DefaultLdapAuthoritiesPopulator,Thread-1:242 - groupSearchBase is empty. Searches will be performed from the context source base2013-03-15 10:32:09,731 INFO DefaultLdapAuthoritiesPopulator,Thread-1:242 - groupSearchBase is empty. Searches will be performed from the context source base2013-03-15 10:32:29,532 DEBUG FilterBasedLdapUserSearch,http-8090-2:109 - Searching for user 'someuser', with user search [ searchFilter: '(&(sAMAccountName={0})(&((objectclass=user))))', searchBase: 'OU=users', scope: subtree, searchTimeLimit: 0, derefLinkFlag: true ]2013-03-15 10:32:29,532 DEBUG FilterBasedLdapUserSearch,http-8090-2:109 - Searching for user 'someuser', with user search [ searchFilter: '(&(sAMAccountName={0})(&((objectclass=user))))', searchBase: 'OU=users', scope: subtree, searchTimeLimit: 0, derefLinkFlag: true ] Link to comment Share on other sites More sharing options...
elizam Posted March 15, 2013 Share Posted March 15, 2013 Can you give us your LDIF file? Link to comment Share on other sites More sharing options...
czupet Posted March 15, 2013 Author Share Posted March 15, 2013 Where is that file located ? Link to comment Share on other sites More sharing options...
czupet Posted March 15, 2013 Author Share Posted March 15, 2013 Where is that file located ? Link to comment Share on other sites More sharing options...
madams_1 Posted March 15, 2013 Share Posted March 15, 2013 I highly doubt that your domain is 'mydomain.com' so if not then you have left the default entries for LDAP in the file, you need to change them to suit your active directory installation. Link to comment Share on other sites More sharing options...
czupet Posted March 15, 2013 Author Share Posted March 15, 2013 I appreciate all of you help I really do, and I know it really hard to help someone if they are no providing enough info, kind of like "my car does not work - fix it", but you are telling me is "if you fix your car correctly it will run". I do not know what values are not correct, there are no error messages or log messages that tell me something is wrong, I do not know what to change, that's why I am here, because I need help. I know I have wrong values, but I don't know which ones are wrong or what they should be. Link to comment Share on other sites More sharing options...
elizam Posted March 18, 2013 Share Posted March 18, 2013 The LDIF file (LDAP Data Interchange Format) is a file you should be able to get from your LDAP set up. Look up the documentation for the LDAP you are using. The LDIF file contains information about your LDAP setup that is needed to configure your JasperReports Server. Link to comment Share on other sites More sharing options...
madams_1 Posted May 1, 2013 Share Posted May 1, 2013 I apologize czupet, were you able to resolve your issue, or do you still need assistance? Link to comment Share on other sites More sharing options...
czupet Posted May 4, 2013 Author Share Posted May 4, 2013 Here's what fixed my problem: property name="userDn" value="ldapuser@ldapserver.com" see the attached file and search for ldapuser Link to comment Share on other sites More sharing options...
czupet Posted May 4, 2013 Author Share Posted May 4, 2013 No need to apologize, I don't not mean to sound offended. I was just saying I did not know what I was doing and needed a lot more detail help. 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