Solved

javax.naming.ServiceUnavailableException when using JNDI to access LDAP

Posted on 2007-03-30
1
5,291 Views
Last Modified: 2013-11-24
Using a InitialDirContext object, searching Active Directory fails. Specifically I'm using the .search method and the error occurs when executing the NamingEnumeration.hasMore method.

The error is that a javax.naming.PartialResultException is throw reporting that the root cause was a
javax.naming.ServiceUnavailableException: testdomain.net:389; socket closed.

I've verified that the environment I'm using to establish the InitialDirContext is correct (user,pass,url).  
Also verified that the LDAP query I'm passing the search method is valid and returns results (execute ldapsearch from command-line).

What could be causing my socket connection to close?

Thanks,
Ron
0
Comment
Question by:nub99
1 Comment
 
LVL 30

Accepted Solution

by:
Mayank S earned 250 total points
ID: 18825736
>> What could be causing my socket connection to close?

Probably incorrect authentication credentials.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question