Home GnuPG
Diffusion GnuPG 3e05f99e8db5

dirmngr: Use --ldaptimeout for OpenPGP LDAP keyservers.

Description

dirmngr: Use --ldaptimeout for OpenPGP LDAP keyservers.

* dirmngr/ks-engine-ldap.c (my_ldap_connect): Use LDAP_OPT_TIMEOUT.
* dirmngr/dirmngr.c (main): Move --ldaptimeout setting to ...
(parse_rereadable_options): here.

Note that this has not yet been tested. In fact a test with OpenLDAP
using a modified route got stuck in the connection attempt. Maybe it
works on Windows - will be tested later.

(cherry picked from commit 317d5947b84ae2707e46b89fb0d8318c07174e13)

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 26 2021, 7:06 PM
Parents
rG52cf32ce2f90: dirmngr: New option --ldapserver
Branches
Unknown
Tags
Unknown