Wait for a while and look at the error message you�ll get back because it might make sense to you. The way I understand it is that there is no problem with your code, but either the parameters used to connect to ldap are wrong, or the LDAP server is not configured properly. Either way you should probably contact the LDAP provider for help or use another LDAP server (search the net for openldap). Regards.

I think, therefore I exist -- Rene Descartes

Ayan Dutta
Ranch Hand

Joined: Oct 16, 2005
Posts: 94

posted Dec 13, 2005 01:58:00

0

i already tried it Valentin but of no conclusion.For the first url(ldap://ldap.bath.ac.uk),i was asked to type my name and e-mail and then press search.

for the later (ldap://ldap.bath.ac.uk/o=bath.ac.uk) ,i got an alert message that this directory service may not be reached.Either that server is down or the server name is incorrect.But i got this Url from one of the sample code on net.plz reply

i should inform you that i am writing this class as simple java class without any xml or server side attached with it,bcoz i think this is just the process of gettting the data from certain source and so only path itself is enough to reveal that.If i am wrong plz reply descriptively

plzzzzzzzzzz do reply

Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704

posted Dec 13, 2005 06:54:00

0

Hi Ayan,

Unfortunately is nothing much I can do to help you. In the previous answer I tried to emphasize that there is something wrong with the URL or the ldap server is probably not able to establish a connection. It was not a solution to your problem. The error you got:

Is self descriptive and could be either because the URL used to connect to ldap is wrong, or the server is not able to establish the connection (more likely). I don�t think the server is down otherwise you�ll get an appropriate error message; something like connection refused no available router to destination, etc. I can only suggest you couple of things:

Contact the customer support and ask them for help. Explain them your experience and ask them about the fix.

Origianlly posted by Ayan, but accidently clicks the add new thread button instead of the add reply button. It happens.

i already tried it Valentin but of no conclusion.For the first url(ldap://ldap.bath.ac.uk),i was asked to type my name and e-mail and then press search.

for the later (ldap://ldap.bath.ac.uk/o=bath.ac.uk) ,i got an alert message that this directory service may not be reached.Either that server is down or the server name is incorrect.But i got this Url from one of the sample code on net.plz reply

i should inform you that i am writing this class as simple java class without any xml or server side attached with it,bcoz i think this is just the process of gettting the data from certain source and so only path itself is enough to reveal that.If i am wrong plz reply descriptively

OK Ayan, I can understand you being frustrated because no one replied to you right away in your original thread. And, unfortunately, I don't think we have many people on the site that is or has used LDAP to answer you right away.

hi Valentin and mark and all others, i got it to work with a directory service as ldap://ldap.yo-linux.com but when i tried it with www.openldap.com and i passed the command line arguments as ou=people(the code was all same. ijust changed my URL and base DN)

OK Ayan, I can understand you being frustrated because no one replied to you right away in your original thread. And, unfortunately, I don't think we have many people on the site that is or has used LDAP to answer you right away.

I swear I do, although I was still not able to gice a complete answer :-)