bgroffen Posted May 24, 2013 Share Posted May 24, 2013 Hello,I've upgraded my jasperserver from V5 to V5.1 and ive encouterd some problems with the LDAP. I noticed that there have been a new file for this applicationcontext-externalAuth-LDAP-mt.xml. I have used and configured this file according to my older applicationcontext-security. (That worked fine)However now that i am using this new LDAP file. it wont grand me access to the jasperserver using an Ldap account. it gives me the Invalid credentials supplied, cannot log you in to jasperserver.Next i have enabled the Loggings, looking he can find the DN and everything according to roles of the ldap user i am using to log in, it just wont grand me acces?logging:2013-05-23 10:37:57,687 DEBUG FilterBasedLdapUserSearch,http-apr-8080-exec-5:109 - Searching for user 'stageict', with user search [ searchFilter: '(sAMAccountName={0})', searchBase: '', scope: subtree, searchTimeLimit: 0, derefLinkFlag: false ] 2013-05-23 10:37:57,687 DEBUG FilterBasedLdapUserSearch,http-apr-8080-exec-5:109 - Searching for user 'stageict', with user search [ searchFilter: '(sAMAccountName={0})', searchBase: '', scope: subtree, searchTimeLimit: 0, derefLinkFlag: false ] 2013-05-23 10:37:57,715 DEBUG SpringSecurityLdapTemplate,http-apr-8080-exec-5:197 - Searching for entry in under DN 'ou=chasse,dc=chasse,dc=local', base = '', filter = '(sAMAccountName={0})' 2013-05-23 10:37:57,715 DEBUG SpringSecurityLdapTemplate,http-apr-8080-exec-5:197 - Searching for entry in under DN 'ou=chasse,dc=chasse,dc=local', base = '', filter = '(sAMAccountName={0})' 2013-05-23 10:37:57,730 DEBUG SpringSecurityLdapTemplate,http-apr-8080-exec-5:214 - Found DN: cn=StageICT,ou=Stagiair,ou=ICT,ou=Users 2013-05-23 10:37:57,730 DEBUG SpringSecurityLdapTemplate,http-apr-8080-exec-5:214 - Found DN: cn=StageICT,ou=Stagiair,ou=ICT,ou=Users 2013-05-23 10:37:57,762 DEBUG DefaultLdapAuthoritiesPopulator,http-apr-8080-exec-5:176 - Getting authorities for user cn=StageICT,ou=Stagiair,ou=ICT,ou=Users,ou=chasse,dc=chasse,dc=local 2013-05-23 10:37:57,762 DEBUG DefaultLdapAuthoritiesPopulator,http-apr-8080-exec-5:176 - Getting authorities for user cn=StageICT,ou=Stagiair,ou=ICT,ou=Users,ou=chasse,dc=chasse,dc=local 2013-05-23 10:37:57,766 DEBUG DefaultLdapAuthoritiesPopulator,http-apr-8080-exec-5:202 - Searching for roles for user 'stageict', DN = 'cn=StageICT,ou=Stagiair,ou=ICT,ou=Users,ou=chasse,dc=chasse,dc=local', with filter (&(Member={0})(objectclass=group)(cn=grp-CT-JS-*)) in search base '' 2013-05-23 10:37:57,766 DEBUG DefaultLdapAuthoritiesPopulator,http-apr-8080-exec-5:202 - Searching for roles for user 'stageict', DN = 'cn=StageICT,ou=Stagiair,ou=ICT,ou=Users,ou=chasse,dc=chasse,dc=local', with filter (&(Member={0})(objectclass=group)(cn=grp-CT-JS-*)) in search base '' 2013-05-23 10:37:57,769 DEBUG SpringSecurityLdapTemplate,http-apr-8080-exec-5:148 - Using filter: (&(Member=cn=StageICT,ou=Stagiair,ou=ICT,ou=Users,ou=chasse,dc=chasse,dc=local)(objectclass=group)(cn=grp-CT-JS-*)) 2013-05-23 10:37:57,769 DEBUG SpringSecurityLdapTemplate,http-apr-8080-exec-5:148 - Using filter: (&(Member=cn=StageICT,ou=Stagiair,ou=ICT,ou=Users,ou=chasse,dc=chasse,dc=local)(objectclass=group)(cn=grp-CT-JS-*)) 2013-05-23 10:37:57,798 DEBUG DefaultLdapAuthoritiesPopulator,http-apr-8080-exec-5:210 - Roles from search: [grp-CT-JS-Bespreekbureau, grp-CT-JS-Alles_lezen, grp-CT-JS-Algemeen, grp-CT-JS-Iedereen] 2013-05-23 10:37:57,798 DEBUG DefaultLdapAuthoritiesPopulator,http-apr-8080-exec-5:210 - Roles from search: [grp-CT-JS-Bespreekbureau, grp-CT-JS-Alles_lezen, grp-CT-JS-Algemeen, grp-CT-JS-Iedereen] Any idea's where this problem might be or what i need to change. Thanks, Bart Link to comment Share on other sites More sharing options...
dlitvak Posted May 30, 2013 Share Posted May 30, 2013 Any way you could post up your old and new config files (hide passwords)? Also, perhaps you could upload the ldif file. Link to comment Share on other sites More sharing options...
dlitvak Posted May 30, 2013 Share Posted May 30, 2013 Also, it looks like authentication does happen. It must be something else in the config. Link to comment Share on other sites More sharing options...
elizam Posted June 7, 2013 Share Posted June 7, 2013 Do you have a single-tenant license? If so, you need to modify the sample file, as described in the following wiki article:http://community.jaspersoft.com/wiki/51-ldap-configuration-using-applicationcontext-externalauth-ldap-mtxml-does-not-work-single Link to comment Share on other sites More sharing options...
dlitvak Posted June 24, 2013 Share Posted June 24, 2013 He is probably on community edition here :) 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