HI
i am trying to connect my java client to Microsoft active directoy using secure ssl,but when i try enable ssl support i get the following error but it works fine with apache studio,which is a ldap browser and i am able to view the ldap tree.But when i use the same configuration with my java client the following exception is thrown
0:03:19,296 ERROR crowd.console.action.principal.BrowsePrincipals: Unable to communicate with LDAP server; nested exception is javax.naming.CommunicationException: simple bind failed: 192.000.00.2:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target]
rg.springframework.dao.DataRetrievalFailureExcepti on: Unable to communicate with LDAP server; nested exception is javax.naming.CommunicationException: simple bind failed: 192.168.2.6:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target]
avax.naming.CommunicationException: simple bind failed: 192.168.2.6:636 [Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target]
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(Unkno wn Source)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unkn own Source)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstanc e(Unknown Source)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext (Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(U nknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unkn own Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.ldap.InitialLdapContext.<init>(Unknow n Source)
at org.springframework.ldap.support.LdapContextSource .getDirContextInstance(LdapContextSource.java:59)
at org.springframework.ldap.support.AbstractContextSo urce.createContext(AbstractContextSource.java:193)
at org.springframework.ldap.support.AbstractContextSo urce.getReadOnlyContext(AbstractContextSource.java :104)
at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:263)
at org.springframework.ldap.LdapTemplate.search(LdapT emplate.java:231)
at com.atlassian.crowd.integration.directory.connecto r.SpringLDAPConnector.pageSearchResults(SpringLDAP Connector.java:451)
at com.atlassian.crowd.integration.directory.connecto r.SpringLDAPConnector.searchPrincipals(SpringLDAPC onnector.java:683)
at com.atlassian.crowd.manager.directory.DirectoryMan agerGeneric.searchPrincipals(DirectoryManagerGener ic.java:716)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoi npointUsingReflection(AopUtils.java:287)
at org.springframework.aop.framework.ReflectiveMethod Invocation.invokeJoinpoint(ReflectiveMethodInvocat ion.java:181)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :148)
at org.springframework.orm.hibernate3.HibernateInterc eptor.invoke(HibernateInterceptor.java:88)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176)
at $Proxy3.searchPrincipals(Unknown Source)
at com.atlassian.crowd.console.action.principal.Brows ePrincipals.execute(BrowsePrincipals.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
at java.lang.reflect.Method.invoke(Unknown Source)