Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test ldap Service Spring security authentification

 
M Marin
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





 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic