Results 1 to 2 of 2

Thread: Spring roo with LDAP

  1. #1

    Default Spring roo with LDAP

    Anyone have a simple LDAP example with spring roo

    At the moment i just have a username apssword authentication with a few role types

    with the following config

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    <beans:beans xmlns="http://www.springframework.org/schema/security"
        xmlns:beans="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
                            http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.0.xsd">
    
        <http auto-config="true" use-expressions="true">
                <form-login login-processing-url="/static/j_spring_security_check" login-page="/login" authentication-failure-url="/login?login_error=t"/>
            <logout logout-url="/static/j_spring_security_logout"/>
           <!-- <intercept-url pattern="/pack/**" access="hasRole('ROLE_USER')"/>-->
           <intercept-url pattern="/pack/**" access="isAuthenticated()"/>
            <intercept-url pattern="/resources/**" access="permitAll" />
            <intercept-url pattern="/static/**" access="permitAll" />
            <intercept-url pattern="/login**" access="permitAll" />
             <intercept-url pattern="/**" access="isAuthenticated()" />
        </http>
    
        <authentication-manager alias="authenticationManager">
         <authentication-provider>
                   <user-service>
                      <user name="admin" password="admin" authorities="ROLE_ADMIN"/>
                        <user name="Noake1j" password="test" authorities="ROLE_USER"/>
                    </user-service>
          </authentication-provider>

  2. #2
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default

    I'd recommend you ask this question on the Spring Security forum, as there you'll be able to reach the people with more LDAP experience: http://forum.springsource.org/forumdisplay.php?f=33

    Roo just creates a standard Spring Security configuration.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •