• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic