Announcement Announcement Module
Collapse
No announcement yet.
Spring roo with LDAP Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    I have just dound out that it is active directories that are in place and not LDAP.

    Again a simple example?

    Comment

    Working...
    X