Announcement Announcement Module
Collapse
No announcement yet.
Authentication with Spring LDAP in Web applications Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X