diff options
Diffstat (limited to 'dirmngr/ks-engine-ldap.c')
-rw-r--r-- | dirmngr/ks-engine-ldap.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dirmngr/ks-engine-ldap.c b/dirmngr/ks-engine-ldap.c index 1b8ef031a..c6fa5ebc3 100644 --- a/dirmngr/ks-engine-ldap.c +++ b/dirmngr/ks-engine-ldap.c @@ -836,6 +836,13 @@ ks_ldap_get (ctrl_t ctrl, parsed_uri_t uri, const char *keyspec, (void) ctrl; + if (opt.use_tor) + { + /* For now we do not support LDAP over TOR. */ + log_error (_("LDAP access not possible due to TOR mode\n")); + return gpg_error (GPG_ERR_NOT_SUPPORTED); + } + /* Before connecting to the server, make sure we have a sane keyspec. If not, there is no need to establish a network connection. */ @@ -1012,6 +1019,13 @@ ks_ldap_search (ctrl_t ctrl, parsed_uri_t uri, const char *pattern, (void) ctrl; + if (opt.use_tor) + { + /* For now we do not support LDAP over TOR. */ + log_error (_("LDAP access not possible due to TOR mode\n")); + return gpg_error (GPG_ERR_NOT_SUPPORTED); + } + /* Before connecting to the server, make sure we have a sane keyspec. If not, there is no need to establish a network connection. */ @@ -1881,6 +1895,13 @@ ks_ldap_put (ctrl_t ctrl, parsed_uri_t uri, /* Elide a warning. */ (void) ctrl; + if (opt.use_tor) + { + /* For now we do not support LDAP over TOR. */ + log_error (_("LDAP access not possible due to TOR mode\n")); + return gpg_error (GPG_ERR_NOT_SUPPORTED); + } + ldap_err = my_ldap_connect (uri, &ldap_conn, &basedn, &pgpkeyattr, &real_ldap); if (ldap_err || !basedn) |