aspose file tools*
The moose likes Security and the fly likes LDAP Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "LDAP Connection" Watch "LDAP Connection" New topic
Author

LDAP Connection

hazem Ali
Greenhorn

Joined: Mar 23, 2009
Posts: 3
I am trying to connect LDAP With java i need to make login and reset password can some one help me

i am using JDK 1.4.2
While Connect to LDAP It get me this Exception :

Thread-0, received EOFException: error
Thread-0, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
Thread-0, SEND TLSv1 ALERT: fatal, description = handshake_failure
Thread-0, WRITE: TLSv1 Alert, length = 2
Thread-0, called closeSocket()
main, handling exception: java.net.SocketException: connection is closed
bind error: javax.naming.CommunicationException: simple bind failed: ufe.edu.eg:389 [Root exception is java.net.SocketException: connection is closed]
javax.naming.CommunicationException: simple bind failed: ufe.edu.eg:389 [Root exception is java.net.SocketException: connection is closed]
at com.sun.jndi.ldap.LdapClient.authenticate(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.getUsingURL(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(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 ADConnection.<init>(ADConnection.java:23)
at ADConnection.main(ADConnection.java:152)
Caused by: java.net.SocketException: connection is closed
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.k(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at com.sun.jndi.ldap.Connection.writeRequest(Unknown Source)
at com.sun.jndi.ldap.LdapClient.ldapBind(Unknown Source)
... 14 more
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: LDAP Connection