I\'m new to ldap and I was trying what I thought was a trivial example to test the spring ldap module with an ldap instance that someone had already setup for testing.
D
It turns out I just needed to include everything in the distinguished name(including the organization unit). Using
contextSource.setBase(...);
for some reason did not work. After making that correction all was fine.
contextSource.setUserDn("cn=john,ou=Users,dc=testathon,dc=net");