Apr 29th, 2009, 09:12 AM
Accessing multiple up and running LDAP server with AceGI?
I am trying to authorize users against different LDAP server at runtime. The AceGI plugin is in use for this Grails project.
Already on application startup SecurityConfig.groovy is read in which one LDAP server (authentication provider) has to be predefined otherwise SpringSecurity throws an error.
Because of this fact the general idea was to override the authentication providerīs contextSource.url, managerDN, managerPWD etc. within the login controller right after the user hits the "login" button.
Now if a member of the predefined LDAP server logs in, everything is fine, but if another user logs in, the authentication is done against the predefined LDAP server again, although URL, ManagerDN and PWD definetely seem to be overwritten.
Does anybody have an idea? Thx in advance!
Last edited by Mechlar; Apr 30th, 2009 at 10:00 AM.