aspose file tools*
The moose likes Spring and the fly likes Test ldap Service Spring security authentification Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Test ldap Service Spring security authentification" Watch "Test ldap Service Spring security authentification" New topic
Author

Test ldap Service Spring security authentification

M Marin
Ranch Hand

Joined: Feb 20, 2010
Posts: 32
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

Joined: Mar 07, 2010
Posts: 1680
    
    7

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


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Test ldap Service Spring security authentification