Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use LDAP plugin on Grails?
    text
    copied!<p>I'm starting a new project on Groovy and Grails. I'm now working on the authentication part and as we have an LDAP server I want to work the authentication using LDAP. I began setting my environment, I'm using SpringSource Tool Suite and <strong>Grails 1.3.5</strong>. When I started working with the authentication part I installed two plugins:</p> <ul> <li>springSecurityCore - 1.0.1</li> <li>springSecurityLdap - 1.0.1</li> </ul> <p>I also ran the "s2 quickstart" command for the LDAP plugin.</p> <p>Everything looks great, I can use the LoginController and the LogoutController, I'm able to secure a web page so that it can only be seen when logged in. I'm doing this by creating a user at the BootStrap.groovy</p> <p>I also configured all the LDAP and Spring Security Core parameters at Config.groovy with the corresponding values of our LDAP server:</p> <pre><code> grails.plugins.springsecurity.ldap.context.managerDn grails.plugins.springsecurity.ldap.context.managerPassword grails.plugins.springsecurity.ldap.context.server grails.plugins.springsecurity.ldap.authorities.groupSearchBase grails.plugins.springsecurity.ldap.search.base grails.plugins.springsecurity.userLookup.userDomainClassName grails.plugins.springsecurity.userLookup.authorityJoinClassName grails.plugins.springsecurity.authority.className </code></pre> <p>However, I don't know how to test that the authentication is being done with the LDAP server. I'm sure it's not being done with LDAP because when I go to the Login box when the application is running and I try to authenticate with my username and password that I normally use for the LDAP server it says that it can't find that user. If I try to authenticate with the user I created on BootStrap.groovy I'm able to login but I guess that user is being created locally only and it's transient.</p> <ol> <li>How can I set the authentication provider to be the LDAP server?</li> <li>What else do I have to do after installing the security core and ldap plugins after running the "s2 quickstart"?</li> </ol> <p>That thing of Groovy and Grails makes so many things on the background that at the beggining is difficult to understand where to configure everything.</p> <p>Thanks in advance for your help</p> <p><strong>EDIT:</strong> I've been looking for information on how to use those plugins but I haven't found anything that is well documented, I've found information regarding Acegi but that plugin is not supported anymore, that's why I'm asking here</p> <p><strong>EDIT:</strong> Reading this (I'll see if achieve to use LDAP): <a href="http://blog.springsource.com/2010/08/11/simplified-spring-security-with-grails/" rel="nofollow">http://blog.springsource.com/2010/08/11/simplified-spring-security-with-grails/</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload