Jump to content

integrating with just active directory


crafty

Recommended Posts

Configuration: JasperServer 2.1 (Acegi 1.0.1)

I am trying to change my webapp to authenticate against Microsoft Active Directory.  My external user is

cn=admin,cn=users,dc=maxview,dc=test

I am having trouble properly configuring DefaultLdapAuthoritiesPopulator.

I was trying to use this resource as a guide even though it is for a newer version of JasperServer.

http://www.google.com/search?q=jasper+external+cookbook&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a

I also looked at:

http://www.eng.utah.edu/~ryant/mediawiki-1.15.4/index.php/Gabriel_Mongefranco%27s_Guide_to_LDAP_Authentication_for_Jasperserver

My current error is:

17:25:06,270  WARN LoggerListener,http-8082-1:55 - Authentication event AuthenticationFailureBadCredentialsEvent: admin; details: org.acegisecurity.ui.WebAuthenticationDetails@12afc: RemoteIpAddress: 131.199.122.226; SessionId: E92EEFEB55B39282FA1EE321B6959CEE; exception: Bad credentials

(I know that I am typing the correct login/password so I am guessing that I have configured something improperly.)

The application-Security.xml is attached.

I would appreciate some guidance.

 

 

 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I was able to resolve the issue by specifying the managerDn differently in the initialDirContxtFactory bean. 

Instead of

property name="managerDn"><value>cn=admin,dc=company,dc=test</value></property>

use:

<property name="managerDn"><value>admin@company.test</value></property>

 

Note: I was using ActiveDirectory Server 2008. I am not sure if this works for other versions.



Post Edited by crafty at 02/24/2011 18:33
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...