wood burning stoves 2.0*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Security
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: 78
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: searching program in LDAP