"Zamangoer, Ferruh" wrote:
> 
> Hi All,
> 
> have anybody experiences with the following Error, which occurs when I want
> to use the example from the JNDI ==> LDAP ==> Security to connect to an LDAP
> Server over SSL:
> 
> <cutscence>
> // Set up the environment for creating the initial context
> Hashtable env = new Hashtable();
> env.put(Context.INITIAL_CONTEXT_FACTORY,
>     "com.sun.jndi.ldap.LdapCtxFactory");
> env.put(Context.PROVIDER_URL, "ldap://localhost:636/o=JNDITutorial";);
> 
> // Specify SSL
> env.put(Context.SECURITY_PROTOCOL, "ssl");
> 
> // Authenticate as S. User and password "mysecret"
> env.put(Context.SECURITY_AUTHENTICATION, "simple");
> env.put(Context.SECURITY_PRINCIPAL, "cn=S. User, ou=NewHires,
> o=JNDITutorial");
> env.put(Context.SECURITY_CREDENTIALS, "mysecret");
> 
> // Create the initial context
> DirContext ctx = new InitialDirContext(env);
> 
> // ... do something useful with ctx
> </cutscence>
> 
> I become the following Error "Root exception is java.net.SocketException:
> SSL implementation not available". I use also jsse.jar which is needed to
> run SSL.
> 
> Can anybody help me :)
> 
> Thanks in advance
> 
> regards Ferruh
It seems that jsse is not correctly installed in you VM. Follow the instruction 
embedded with the jsse for the correct definition of the
security provider in the
JRE_HOME/lib/security/java.security
config file.
-- 
Dott. Sergio Rabellino 

 Technical Staff
 Department of Computer Science
 University of Torino (Italy)
 Member of the Internet Society

http://www.di.unito.it/~rabser
Tel. +39-0116706701
Fax. +39-011751603
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to