Results 1 to 2 of 2

Thread: Authentication with Spring LDAP in Web applications

  1. #1
    Join Date
    Nov 2006
    Posts
    21

    Thumbs down Authentication with Spring LDAP in Web applications

    Hi, i want to know how i should configure the Spring LDAP for to authenticate users in a web application.

    My configuration is the below

    <bean id="placeholderConfig" class="org.springframework.beans.factory.config.Pr opertyPlaceholderConfigurer">
    <property name="location" value="/application/ldap.properties" />
    </bean>

    <bean id="contextSource" class="org.springframework.ldap.support.LdapContex tSource">
    <property name="url" value="${url}" />
    <property name="base" value="${base}" />
    <property name="userName" value="${user}" />
    <property name="password" value="${password}" />
    </bean>

    <bean id="ldapTemplate" class="org.springframework.ldap.LdapTemplate">
    <constructor-arg ref="contextSource" />
    </bean>

    The problem is that with this configuration i can authenticate only a user. I want to authenticate dynamiclly users with theirs userNames and passwords, that's, custom authentication, but without using Acegi.

    Can Someone show me some example about this?

  2. #2
    Join Date
    Mar 2005
    Location
    Landskrona, Sweden
    Posts
    505

    Default

    For full authentication in a web application I'd personally recommend Acegi. If still want to use plain Spring LDAP, have a look at this thread.
    Mattias Arthursson
    Jayway AB (www.jayway.se)
    Spring-LDAP project member

Posting Permissions

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