[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
SASL and SSL
Dear all,
I try to run the two examples given in JNDI tutorial and both failed. I
have already download the cyrus SASL and compile it. Also install a trial
Cert from Verisign. Using this Netscape Directory Server 4.12 I still not
able to use and security option. Any suggestion or comments are welcome.
Following are the errors:
C:\LDAP-JAVA\Tutorials\jndi\ldap\security\src>java Crammd5
javax.naming.AuthenticationNotSupportedException: [LDAP: error code 7 - SASL
mec
hanism not supported]
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown
Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
at Crammd5.main(Crammd5.java:61)
C:\LDAP-JAVA\Tutorials\jndi\ldap\security\src>java Ssl
javax.naming.CommunicationException: localhost:636. Root exception is
java.net.
SocketException: SSL implementation not available
at
javax.net.ssl.DefaultSSLSocketFactory.createSocket([DashoPro-V1.2-120
198])
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.jndi.ldap.Connection.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapClient.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown
Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
at Ssl.main(Ssl.java:65)
Thanks in Advance,
David