Solved

javax.naming.ServiceUnavailableException when using JNDI to access LDAP

Posted on 2007-03-30
1
5,275 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:
mayankeagle earned 250 total points
ID: 18825736
>> What could be causing my socket connection to close?

Probably incorrect authentication credentials.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

746 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now