This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes Java ldap connection problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java ldap connection problem" Watch "Java ldap connection problem" New topic
Author

Java ldap connection problem

Nuno Quiterio
Greenhorn

Joined: Oct 15, 2010
Posts: 1
Hello to all,

Since 4 years that i'm using LDAP in my intranet to authenticate the users with active directory. Since 2 weeks that (and i don't know why) this code and connection is not working so well. Sometimes the connection don't start and i don't have permissions. If i restart the TOmcat (not always) the authentication starts well but again goes down.

One thing is that i have two Domain COntrollers and one has a problem and we have to use the intranet Server as a Domain Controller... But on my laptop (not a domain controller) i'm having also the same things.

I debug the code and i receive the following error message "[Root exception is java.net.ConnectException: Connection timed out: connect", i search and i see one thing in one forum saying to add to the hosts file the ip of the intranet server plus FDQN and the server name

Ex: 192.168.1.1 test.dominio.com test

After this i start to work well and all the authentication was running but now again... I'm completly blind because i don't have any clue....


Sorry, i don't know if this is the right forum...

Thanks in advanced,

Nuno

This is my code:


Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19672
    
  18

Welcome to the Ranch, Nuno!

Please UseCodeTags next time. I've added them for you this time, and see how much easier it is to read your code part.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java ldap connection problem