posted 21 years ago
Hi Phillip
Thanks for your response.
Well, I am using JNDI and the ldap package you mentioned. I will try to re-explain my concern,
1. I have a ldap server X
2. I have a development server Y
3. Y is internal machine to my network which is not allowed to make connection to X directly
4. I have a proxy P that is used to access other servers. e.g. to do telnet, to access html page on those servers via setting browser proxy etc
Now, I know that to do a telnet to some external machine which is not allowing direct telnet to my internal machine, I have to first login to the proxy server (via ssh or telnet) and then do telnet to the external machine. Similarly, if I want to make URLConnection from a code residing on my internal machine to the external server then I use,
System.setProperty("http.proxy","myproxy");
System.setProperty("http.port","myproxyport");
But what if I have to make LDAP connection via JNDI to the external ldap machine which doesn't allow my internal machine to connect to itself directly? I guess, setting above same properties doesn't help me because they are for HTTP proxy , right?
I hope I am able to explain my problem.
Regards
Maulin