This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
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

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "LDAP Connection" Watch "LDAP Connection" New topic

LDAP Connection

hazem Ali

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: 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: connection is closed
bind error: javax.naming.CommunicationException: simple bind failed: [Root exception is connection is closed]
javax.naming.CommunicationException: simple bind failed: [Root exception is 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<init>(Unknown Source)
at ADConnection.<init>(
at ADConnection.main(
Caused by: connection is closed
at Source)
at Source)
at Source)
at Source)
at Source)
at 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:
subject: LDAP Connection
It's not a secret anymore!