Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Anonymous Connection To Active Directory LDAP  RSS feed

Jason Ferguson
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect anonymously to my organization's LDAP server just to read a set of user details. My .NET coworkers use a relatively simple set of code to connect:

I have attempting to connect with the following Java code, using Spring-LDAP's LDAP Template and an LDAP DAO.

Unfortunately, the following exception is thrown:

In the .NET snippet, note that no username/password is provided. As such, I'm trying to avoid providing one in the Java version.
[ January 02, 2008: Message edited by: J. Ferguson ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!