Announcement Announcement Module
Collapse
No announcement yet.
LDAP example with spring roo Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • LDAP example with spring roo

    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
    Found that it is Activie directories needed

    Again a simple example?

    Comment


    • #3
      Hi

      http://blogs.sourceallies.com/2009/1...torial-part-1/

      Have look to this this may help

      placi.

      Comment

      Working...
      X