Hello all:
Having a rough time getting LDAP authentication to work. I know a bare minimum about LDAP, which is part of the problem. Anyway, the ldap section of my xml file is:
(cn=)
Debug output is:
2006.01.20 15:34:24 Trying to find a user’'s DN based on their username. cn: paul, Base DN: ou=People,dc=[domain],dc=com…
2006.01.20 15:34:24 Creating a DirContext in LdapManager.getContext()…
2006.01.20 15:34:24 Created hashtable with context values, attempting to create context…
2006.01.20 15:34:24 Exception thrown when searching for userDN based on username ‘‘paul’’
javax.naming.CommunicationException: simple bind failed: :389 Root exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
at com.sun.jndi.ldap.LdapClient.authenticate(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.(Unknown Source)
at org.jivesoftware.wildfire.ldap.LdapManager.getContext(LdapManager.java:271)
at org.jivesoftware.wildfire.ldap.LdapManager.findUserDN(LdapManager.java:445)
at org.jivesoftware.wildfire.ldap.LdapManager.findUserDN(LdapManager.java:400)
at org.jivesoftware.wildfire.ldap.LdapAuthProvider.authenticate(LdapAuthProvider.j ava:88)
at org.jivesoftware.wildfire.auth.AuthFactory.authenticate(AuthFactory.java:114)
at org.jivesoftware.wildfire.admin.login_jsp._jspService(login_jsp.java:134)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
…
Couple of notes:
-command line ldapsearch works as expected
-tls is used, but over port 389
Any ideas what’'s going wrong? Thanks!
-Paul