Meaningless Drivel is fun!*
The moose likes Spring and the fly likes Spring LDAP security 3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring LDAP security 3" Watch "Spring LDAP security 3" New topic

Spring LDAP security 3

Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39

I have the following configuration of LDAP:

But with this configuration have the exception in InitialDirContaxt.class:

I have read at this url :

In AbstractContextSource (parent of LdapContextSource), the Javadoc for the setBase() method says the following:
"Set the base suffix from which all operations should origin. If a base suffix is set, you will not have to (and, indeed, must not) specify the full distinguished names in any operations performed.".
Since you specify the full DN for the userDN, hence you must not specify the base.

I need some help please.

Thanks in advance.

It is sorta covered in the JavaRanch Style Guide.
subject: Spring LDAP security 3
Similar Threads
Spring LDAP/Active Directory Security: Authenticate User w/out Using an Admin/Mgr Account
Issue with Spring LDAP/AD authentication
[Spring Security] No bean named 'springSecurityFilterChain' is defined
Spring/AD authentication ServiceUnavailableException ONLY on ssl 636, not 389
REST web service return both XML or JSON