• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI and AD connection refused /connection timeout  RSS feed

 
Florian Seidel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote a program using JNDI which connects to a AD server to authenticate an AD user. This program works fine on a windows 2003 server on the network. When I run the same program from a linux server on the same network it fails with one of these error messages:

javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: server1:389 [Root exception is java.net.ConnectException: Connection refused]]
OR
javax.naming.PartialResultException [Root exception is javax.naming.CommunicationException: sv.server1:389 [Root exception is java.net.ConnectException: Connection timed out]]

I have no idea what to do next!

Any suggestions?
 
Duc Vo
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you try two things?
(1) Ping the AD from the linux box
(2) If you can ping, try to telnet to the AD from the linux box to the same port

If either of them doesn't work, it'll be network configuration between the two boxes. Fix that first.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!