I want to connect to an LDAP server running on a server at ldap.subnet.example.com
using Apache Directory Studio.
I am running Apache Directory Studio 2.0.0.v20200411-M15 with java-14-openjdk
on Manjaro Linux.
Unfortunately, the LDAP server is only reachable from within the same subnet and I am outside this subnet (my host is mypc.example.org
). I however can access the host portal.subnet.example.com
via SSH, which is in the same subnet as the LDAP server and can therefore bind to it.
My go-to way of solving this is creating a SOCKS proxy using the following command on mypc.example.org
:
ssh -D 8080 [email protected]
I then configure the software to use this SOCKS proxy. This works very well with e.g. Firefox.
However, it does not seem to work with Apache Directory Studio. I have made the following settings in "Window" > "Preferences" > "General" > "Network Connections":
- Active Provider: Manual
- Proxy entries:
- HTTP (nothing specified here, but I can't delete it either)
- HTTPS (same as above)
- SOCKS: Host
localhost
, Port8080
, ProviderManual
, AuthNo
- Proxy bypass:
localhost
, ProviderManual
(default settings, I did not modify this)127.0.0.1
, ProviderManual
(default settings, I did not modify this)
Still, when I try to connect to the server, "Open Connection: (14%)" appears for a while in the bottom left corner before I get an "Error while opening connection - MSG_04177_CONNECTION_TIMEOUT (5000)".
I have also tried to set the proxy in the ApacheDirectoryStudio.ini
, again, without success.
-vmargs
-DsocksProxyHost=localhost
-DsocksProxyPort=8080
This issue might be related – the last comment leaves me with the impression that the Apache LDAP API simply ignores those settings because it is based on Apache MINA, which is configured differently; I however have not found out how. This Stack Overflow question matches the problem described in the issue, but sadly, the solutions are code - I need a configuration solution.
localhost
(viaProxy bypass
) even though the proxy itself is running onlocalhost
(Proxy entries
)? This doesn't seem to make much sense to me.localhost
should be bypassed, but that for LDAP servers running onlocalhost
no proxy should be used (which I suppose is sensible, but shouldn't affect me if I'm correct, because my LDAP server does not run onlocalhost
).