473,547 Members | 2,391 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Active directory Confguration

17 New Member
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.a ction.principal .BrowsePrincipa ls: Unable to communicate with LDAP server; nested exception is javax.naming.Co mmunicationExce ption: simple bind failed: 192.000.00.2:63 6 [Root exception is javax.net.ssl.S SLHandshakeExce ption: sun.security.va lidator.Validat orException: PKIX path building failed: sun.security.pr ovider.certpath .SunCertPathBui lderException: unable to find valid certification path to requested target]
rg.springframew ork.dao.DataRet rievalFailureEx ception: Unable to communicate with LDAP server; nested exception is javax.naming.Co mmunicationExce ption: simple bind failed: 192.168.2.6:636 [Root exception is javax.net.ssl.S SLHandshakeExce ption: sun.security.va lidator.Validat orException: PKIX path building failed: sun.security.pr ovider.certpath .SunCertPathBui lderException: unable to find valid certification path to requested target]
avax.naming.Com municationExcep tion: simple bind failed: 192.168.2.6:636 [Root exception is javax.net.ssl.S SLHandshakeExce ption: sun.security.va lidator.Validat orException: PKIX path building failed: sun.security.pr ovider.certpath .SunCertPathBui lderException: unable to find valid certification path to requested target]
at com.sun.jndi.ld ap.LdapClient.a uthenticate(Unk nown Source)
at com.sun.jndi.ld ap.LdapCtx.conn ect(Unknown Source)
at com.sun.jndi.ld ap.LdapCtx.<ini t>(Unknown Source)
at com.sun.jndi.ld ap.LdapCtxFacto ry.getUsingURL( Unknown Source)
at com.sun.jndi.ld ap.LdapCtxFacto ry.getUsingURLs (Unknown Source)
at com.sun.jndi.ld ap.LdapCtxFacto ry.getLdapCtxIn stance(Unknown Source)
at com.sun.jndi.ld ap.LdapCtxFacto ry.getInitialCo ntext(Unknown Source)
at javax.naming.sp i.NamingManager .getInitialCont ext(Unknown Source)
at javax.naming.In itialContext.ge tDefaultInitCtx (Unknown Source)
at javax.naming.In itialContext.in it(Unknown Source)
at javax.naming.ld ap.InitialLdapC ontext.<init>(U nknown Source)
at org.springframe work.ldap.suppo rt.LdapContextS ource.getDirCon textInstance(Ld apContextSource .java:59)
at org.springframe work.ldap.suppo rt.AbstractCont extSource.creat eContext(Abstra ctContextSource .java:193)
at org.springframe work.ldap.suppo rt.AbstractCont extSource.getRe adOnlyContext(A bstractContextS ource.java:104)
at org.springframe work.ldap.LdapT emplate.search( LdapTemplate.ja va:263)
at org.springframe work.ldap.LdapT emplate.search( LdapTemplate.ja va:231)
at com.atlassian.c rowd.integratio n.directory.con nector.SpringLD APConnector.pag eSearchResults( SpringLDAPConne ctor.java:451)
at com.atlassian.c rowd.integratio n.directory.con nector.SpringLD APConnector.sea rchPrincipals(S pringLDAPConnec tor.java:683)
at com.atlassian.c rowd.manager.di rectory.Directo ryManagerGeneri c.searchPrincip als(DirectoryMa nagerGeneric.ja va:716)
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
at org.springframe work.aop.suppor t.AopUtils.invo keJoinpointUsin gReflection(Aop Utils.java:287)
at org.springframe work.aop.framew ork.ReflectiveM ethodInvocation .invokeJoinpoin t(ReflectiveMet hodInvocation.j ava:181)
at org.springframe work.aop.framew ork.ReflectiveM ethodInvocation .proceed(Reflec tiveMethodInvoc ation.java:148)
at org.springframe work.orm.hibern ate3.HibernateI nterceptor.invo ke(HibernateInt erceptor.java:8 8)
at org.springframe work.aop.framew ork.ReflectiveM ethodInvocation .proceed(Reflec tiveMethodInvoc ation.java:170)
at org.springframe work.aop.framew ork.JdkDynamicA opProxy.invoke( JdkDynamicAopPr oxy.java:176)
at $Proxy3.searchP rincipals(Unkno wn Source)
at com.atlassian.c rowd.console.ac tion.principal. BrowsePrincipal s.execute(Brows ePrincipals.jav a:62)
at sun.reflect.Nat iveMethodAccess orImpl.invoke0( Native Method)
at sun.reflect.Nat iveMethodAccess orImpl.invoke(U nknown Source)
at sun.reflect.Del egatingMethodAc cessorImpl.invo ke(Unknown Source)
at java.lang.refle ct.Method.invok e(Unknown Source)
Oct 9 '07 #1
1 4212
Dököll
2,364 Recognized Expert Top Contributor
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

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

Similar topics

2
2133
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an issue with Active Directory. Our network consists of Windows-2000 Servers (SP 4) and Windows-2000 workstations and Windows-XP workstations. We...
0
2785
by: microsoft | last post by:
Hi People, when I try to modify an active directory user programatically, I receive the following exception: The server is unwilling to process the request Reading the microsoft web site, I found this article: http://support.microsoft.com/default.aspx?scid=kb;EN-US;248717 that says the following: ..........................
9
3698
by: Mario Rodriguez | last post by:
Hi people. I have a problem adding users to Win2003 active directory programatically. When I execute my app throws the following exception: .................The specified directory service attribute or value does not exist........... Exactly the same code works fine on my win2000 active directory. My app include the use of the...
1
4735
by: Andrew | last post by:
Hey all, Working on revamping our Intranet here and making use of the LDPA, Active Directory, Directory Services, etc. that .Net provides. I am still fairly new on this subject, so the problem I have run into I am not sure how to fix, and really not sure what is causing it. Here's what is going on (test server - Windows 2003 Server): I...
6
2394
by: Leo_Surf | last post by:
Hello, I need your help adding user in Active Directory from ASP.net website. Could any one provide me the complete code for the html page. As this is my curriculam project and I dont have any Idea about ASP.net Please Help Thanks in Advance.
1
3879
by: tangus via DotNetMonster.com | last post by:
Hello all, I'm really struggling with getting some Active Directory code to work in ASP.NET. Can you please provide assistance? I am executing the following code: Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://domain") Dim mySearcher As New DirectorySearcher(enTry) Dim resEnt As SearchResult mySearcher.Filter =...
10
4037
by: Hriday | last post by:
Hi there, Please help me..It is urgent This is Hriday, working on windows authentication with Active Directory... My requirment is when a user sends a request to my web Applicatoin I want to Pop up windows Authentication box so that user will give his userId, Password & domain name for authenticaion. After that I want to take these...
0
2000
by: RTT | last post by:
here is my current situation. I develop a program on my computer's localhost. From there i contact Active directory succesfull using a connectionstring like: LDAP://OU=BE,OU=SE,DC=eu,DC=aagp,DC=corp. This works fine. My computer is in and OU under the BE folder, and so is my User. I have no problems connecting to the Active Directory. ...
2
5952
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could use the System.DirectoryServices.ActiveDirectory namespace. I don't even know if this is the right way to go as I can't seem to find anything in that...
0
7510
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7437
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7947
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7797
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5362
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3473
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1923
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1050
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
748
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.