File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Security and the fly likes searching program in LDAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "searching program in LDAP" Watch "searching program in LDAP" New topic

searching program in LDAP

Babu Singh
Ranch Hand

Joined: Aug 17, 2009
Posts: 83
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

Joined: Nov 18, 2006
Posts: 174
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).

Censorship is the younger of two shameful sisters, the older one bears the name inquisition.
-- Johann Nepomuk Nestroy
I agree. Here's the link:
subject: searching program in LDAP
It's not a secret anymore!