• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring MVC and LdapTemplate

 
laura mccord
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm stuck on how to troubleshoot this issue. I am getting this error:

{"error":"Error invoking getPerson. [org.springframework.ldap.NameNotFoundException: [LDAP: error code 32 - No Such Object]; nested exception is javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name ....

I have my contextSource defined





Then in my PersonService code I do my search like this:



Neither the ldapTemplate.lookup() or ldapTemplate.search() are working.

Yet, if I do this from the command line...it works:



I feel like I am just not catching something obvious that maybe someone can point out that I forgot to do. So a second (or more) pair of eyes would help me.

Thanks so much
 
laura mccord
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it! Turned out it was a misspelling in my hard-coded search.

Thanks Anyway
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!