This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 72
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
Similar Threads
LDAP sample program
LDAP: error
LDAP and NamingEnumeration
How tp use SearchFilter with JNDI
How to get entries in ldap?