Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Anonymous Connection To Active Directory LDAP

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 ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic