• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Test ldap Service Spring security authentification

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to use this test ldap service for authentication with spring security:

http://blog.stuartlewis.com/2008/07/07/test-ldap-service/comment-page-1/#comment-5748

following details are given:

Details:

ldap.provider_url = ldap://ldap.testathon.net:389/
ldap.id_field = cn
ldap.object_context = OU=users,DC=testathon,DC=net
ldap.search_context = OU=users,DC=testathon,DC=net
ldap.email_field = mail
ldap.surname_field = sn
ldap.givenname_field = givenName
ldap.phone_field = telephoneNumber

But I am Still not able to get a working configuration.

My configuration is:

<authentication-manager>
<ldap-authentication-provider

??? - I am stuck here

>
</ldap-authentication-provider>
</authentication-manager>

<ldap-server url="ldap.testathon.net:389" manager-dn="CN=stuart,OU=users,DC=testathon,DC=net" manager-password="stuart" />

Regards

Marin





 
Bartender
Posts: 1682
7
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would encourage you to use an embedded ldap server for this purpose.

http://directory.apache.org/


Here is a blog giving a walk through on it.
http://krams915.blogspot.com/2011/01/spring-security-mvc-using-embedded-ldap.html
 
    Bookmark Topic Watch Topic
  • New Topic