File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Security and the fly likes searching program in LDAP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "searching program in LDAP" Watch "searching program in LDAP" New topic
Author

searching program in LDAP

Babu Singh
Ranch Hand

Joined: Aug 17, 2009
Posts: 68
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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: searching program in LDAP
 
Similar Threads
How tp use SearchFilter with JNDI
LDAP and NamingEnumeration
How to get entries in ldap?
LDAP sample program
LDAP: error