How to configure HTTP PROXY for connecting to LDAP server

aveekkumar

New Member
Dec 3, 2022
6
0
1
Hi Community,

We are trying to setup an LDAP server as a authentication source in PVE 8.0.4. The LDAP server is hosted on cloud and the PVE server doesn't have access to reach the LDAP server directly.

We have configured an HTTP_PROXY under Datacenter > Options > HTTP Proxy on the GUI but PVE server is not able use the HTTP_PROXY to connect to the LDAP server.

Is there a way to configure a HTTP_PROXY which applies to a authentication source ?
 
Hi,

no, that is not directly possible.
For starters, LDAP uses its own protocol (based on ASN.1), so HTTP proxies would not even apply for that. Normally, LDAP servers are on-prem anyway.

I would suggest to set up a separate, protocol-transparent proxy for this (e.g. HAProxy) and simply point your LDAP configuration at this proxy's IP/hostname directly.