| 1 |
Use an outgoing proxy |
| 2 |
===================== |
| 3 |
|
| 4 |
For some protocols, LemonLDAP::NG has to directly contact the external server. |
| 5 |
This is the case for example with CAS authentication (validation of |
| 6 |
service ticket) or OpenID Connect authentication (access to token |
| 7 |
endpoint and userinfo endpoint). |
| 8 |
|
| 9 |
If the LL::NG server needs a proxy for outgoing connections, then you |
| 10 |
need to configure some environment variables. By default, only connections |
| 11 |
to external systems (CAS, OIDC, etc.) are done through the proxy, while HTTP |
| 12 |
connections in between LemonLDAP::NG components are not. |
| 13 |
|
| 14 |
Apache |
| 15 |
------ |
| 16 |
|
| 17 |
In Apache configuration, set: |
| 18 |
|
| 19 |
.. code-block:: apache |
| 20 |
|
| 21 |
FcgidInitialEnv http_proxy http://X.X.X.X:X |
| 22 |
FcgidInitialEnv https_proxy http://X.X.X.X:X |
| 23 |
# on Centos7, you need LWP::Protocol::connect |
| 24 |
# FcgidInitialEnv https_proxy connect://X.X.X.X:X |
| 25 |
|
| 26 |
# Optional: use this to force ALL http connections to go |
| 27 |
# through the proxy. This is only useful in some scenarios |
| 28 |
# FcgidInitialEnv PERL_LWP_ENV_PROXY 1 |
| 29 |
# FcgidInitialEnv no_proxy <urls-without-proxy> |
| 30 |
|
| 31 |
Nginx/FastCGI |
| 32 |
------------- |
| 33 |
|
| 34 |
add in ``/etc/default/lemonldap-ng-fastcgi-server`` : |
| 35 |
|
| 36 |
:: |
| 37 |
|
| 38 |
http_proxy=http://X.X.X.X:X |
| 39 |
https_proxy=http://X.X.X.X:X |
| 40 |
# on Centos7, you need LWP::Protocol::connect |
| 41 |
# https_proxy=connect://X.X.X.X:X |
| 42 |
|
| 43 |
# Optional: use this to force ALL http connections to go |
| 44 |
# through the proxy. This is only useful in some scenarios |
| 45 |
# PERL_LWP_ENV_PROXY=1 |
| 46 |
# no_proxy=<urls-without-proxy> |
| 47 |
|