469,076 Members | 1,305 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,076 developers. It's quick & easy.

Active directory Confguration

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)
Oct 9 '07 #1
1 3993
Dököll
2,364 Expert 2GB
Greetings, mfsiddiq!

Thank you for posting your error, could you also post the whole code in question. I am a newbie at this stuff, I pay more attention to code:Sun Microsystems - Search

When I have ldap issues, I fetch Sun Microsystems for an idea...

Give that a whirl, then let us know.

Dököll
Dec 29 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by Mario Rodriguez | last post: by
1 post views Thread by Andrew | last post: by
6 posts views Thread by Leo_Surf | last post: by
1 post views Thread by tangus via DotNetMonster.com | last post: by
2 posts views Thread by Jim in Arizona | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.