• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

JNDI and AD connection refused /connection timeout

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
no wonder he is so sad, he hasn't seen this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic