This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring LDAP security 3" Watch "Spring LDAP security 3" New topic
Author

Spring LDAP security 3

Luis Parente
Ranch Hand

Joined: Jan 17, 2012
Posts: 39
Hi,

I have the following configuration of LDAP:





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








I have read at this url : http://forum.springsource.org/showthread.php?71203-Active-Directory-LDAP-Authentication-LDAP-Error-32


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.






 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring LDAP security 3