Announcement Announcement Module
No announcement yet.
Authentication with Spring LDAP in Web applications Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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/" />

    <bean id="contextSource" class=" tSource">
    <property name="url" value="${url}" />
    <property name="base" value="${base}" />
    <property name="userName" value="${user}" />
    <property name="password" value="${password}" />

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

    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.