Home GnuPG
Diffusion GnuPG 55f46b33df08

dirmngr: Support new gpgNtds parameter in LDAP keyserver URLs.

Description

dirmngr: Support new gpgNtds parameter in LDAP keyserver URLs.

* dirmngr/ldap-parse-uri.c (ldap_parse_uri): Support a new gpgNtds
extension.
* dirmngr/ks-engine-ldap.c (my_ldap_connect): Do ldap_init always with
hostname - which is NULL and thus the same if not given.  Fix minor
error in error code handling.

Note that "gpgNtds" is per RFC-4512 case insensitive and has not yet
been officially regisetered. Thus for correctness the OID can be
used:

1.3.6.1.4.1.11591.2.5          LDAP URL extensions
1.3.6.1.4.1.11591.2.5.1          gpgNtds=1 (auth. with current user)

Note that the value must be 1; all other values won't enable AD
authentication and are resevered for future use.

Details

Provenance
wernerAuthored on Feb 17 2021, 5:31 PM
Parents
rGcdc828f69026: dirmngr: Rewrite a weird function by straighter code.
Branches
Unknown
Tags
Unknown