Announcement Announcement Module
Collapse
No announcement yet.
Roosome project with a minor LDAP beef Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Roosome project with a minor LDAP beef

    Good afternoon fellow Roosters!

    I have a simple Roo project that has served me well. However, I decided to add on LDAP authentication to the application and this is when trouble came to paradise.

    I simply added the following dependencies to the POM:

    Code:
    <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-core</artifactId>
            <version>1.3.1.RELEASE</version>
    </dependency>
    <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-core-tiger</artifactId>
            <version>1.3.1.RELEASE</version>
    </dependency>
    <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-test</artifactId>
            <version>1.3.1.RELEASE</version>
    </dependency>
    <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-ldif-core</artifactId>
            <version>1.3.1.RELEASE</version>
    </dependency>
    <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-ldif-batch</artifactId>
            <version>1.3.1.RELEASE</version>
    </dependency>
    <dependency>
            <groupId>org.springframework.ldap</groupId>
            <artifactId>spring-ldap-odm</artifactId>
            <version>1.3.1.RELEASE</version>
    </dependency>
    and then I added to the applicationContext-security:

    Code:
    	<ldap-server id="ldapServer" url="ldap://foo.monkey.com:389/" manager-dn="cn=foo,dc=foo.monkey,dc=com" manager-password="foofoofooski" />
     
    	<authentication-manager>
    	 <ldap-authentication-provider server-ref="ldapServer"  
    	    user-search-base="dc=foo.monkey,dc=com" 
    	    user-search-filter="(displayName={0})"
    	    group-role-attribute="cn"
    	    group-search-base="ou=groups,dc=foo.monkey,dc=com"
    	    group-search-filter="(memberUid={1})"
    	    role-prefix="ROLE_" />
    	</authentication-manager>
    While this configuration might not be complete or even correct, the error I get at startup is:

    Code:
    Caused by: java.lang.ClassNotFoundException: org.springframework.ldap.core.support.BaseLdapPathContextSource
    AFAIK, this class should be deployed in one of the dependencies declared in the POM (see above.) Does anyone know what might be burning me?

  • #2
    The problem was an incompatibility between bouncycastle crypto and Spring Security.

    Comment

    Working...
    X