Sent from my iPhone
> On Jan 20, 2021, at 10:27 AM, Jaroslaw Rafa <r...@rafa.eu.org> wrote:
>
> Dnia 20.01.2021 o godz. 15:48:29 Ganael Laplanche pisze:
>>> So just try to create some simple "proxy" to your LDAP server that does only
>>> one thing: if LDAP is available, just return the response from LDAP; if
>>> not, just returns "not found". And use that proxy in Postfix in place of
>>> your actual LDAP server. This will require probably some development, but
>>> it shouldn't be very much.
>>
>> Yes, that would probably be an idea and this is what Viktor was suggesting
>> (I
>> suppose) whan he was writing about socketmap.
>
> There's no need to use socketmap if your proxy would be an actual proxy, ie.
> it would speak LDAP protocol to the connecting clients. You'll need to just
> replace your original LDAP server with the proxy in your configuration.
>
> Searching the web for "LDAP proxy", this is one of the first results I
> found: https://ldaptor.readthedocs.io/en/latest/cookbook/ldap-proxy.html .
> It's a Python library for LDAP, and this documentation presents some example
> code for creating LDAP proxies using this library.
A thought would be to have a separate process that checks for ldap
availability. if not, issue a postconf command to change the setting on the
fly. when the ldap server comes back, issue a new postconf command to reverse
the process to go back to the ldap server.
> --
> Regards,
> Jaroslaw Rafa
> r...@rafa.eu.org
> --
> "In a million years, when kids go to school, they're gonna know: once there
> was a Hushpuppy, and she lived with her daddy in the Bathtub."