Solved

javax.naming.ServiceUnavailableException when using JNDI to access LDAP

Posted on 2007-03-30
1
5,285 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

773 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