Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

searching program in LDAP

 
Babu Singh
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am making a program with LDAP to search the name.



but i am facing exception.
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file Here:


please suggest how i resolve this issue. or any other searching program in LDAP
 
Peter Taucher
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not an expert, but I think that you should provide an URL as first parameter for the search() method (or use an InitialContextFactoryBuilder).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic