LDAPsearch 覆盖 ldap.conf 参数

LDAPsearch overwrite ldap.conf parameter

在我的 ldap.conf 中,我需要设置 TLS_REQCERT never 但我想在我的 ldapsearch 控制台命令中设置。 我查看了下一页,但找不到正确的参数。 https://manpages.courier-mta.org/htmlman1/ldapsearch.1.html

如何使用控制台命令 ldapsearch ... 将此参数设置为从不? 感谢您的帮助:)

您可以预先将其设置为 environment variable :

LDAPTLS_REQCERT=never

The SSL/TLS parameters can be set as either an environment variable or within the OpenLDAP configuration, meaning set in /etc/openldap/ldap.conf or the $HOME/[.]ldaprc profiles.