You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ck...@apache.org on 2021/12/18 01:24:48 UTC
[logging-log4j2] 15/16: [DOC] replace old `allowedLdap*` properties with `enableJndiContextSelector`
This is an automated email from the ASF dual-hosted git repository.
ckozak pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
commit 80eaa5cdaef536c2163aa3a230ddaee24e03a4ff
Author: Remko Popma <re...@yahoo.com>
AuthorDate: Sat Dec 18 10:01:38 2021 +0900
[DOC] replace old `allowedLdap*` properties with `enableJndiContextSelector`
---
src/site/xdoc/manual/extending.xml | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/site/xdoc/manual/extending.xml b/src/site/xdoc/manual/extending.xml
index 04c742a..e56decb 100644
--- a/src/site/xdoc/manual/extending.xml
+++ b/src/site/xdoc/manual/extending.xml
@@ -92,10 +92,11 @@
<dd>Associates LoggerContexts with the ClassLoader that created the caller of the getLogger call. This is
the default ContextSelector.</dd>
<dt><a class="javadoc" href="../log4j-core/apidocs/org/apache/logging/log4j/core/selector/JndiContextSelector.html">JndiContextSelector</a></dt>
- <dd>Locates the LoggerContext by querying JNDI. Please see <a href="../manual/configuration.html#allowedJndiProtocols">log4j2.allowedJndiProtocols</a>,
- <a href="../manual/configuration.html#allowedLdapClasses">log4j2.allowedLdapClasses</a>, and
- <a href="../manual/configuration.html#allowedLdapHosts">log4j2.allowedLdapHosts</a> for restrictions on using JNDI
- with Log4j.</dd>
+ <dd>Locates the LoggerContext by querying JNDI.
+ As of Log4j 2.17.0 JNDI operations require that <code>log4j2.enableJndiContextSelector=true</code> be set as a system
+ property or the corresponding environment variable for this lookup to function. See the
+ <a href="./configuration.html#enableJndiContextSelector">enableJndiContextSelector</a> system property.
+ </dd>
<dt><a class="javadoc" href="../log4j-core/apidocs/org/apache/logging/log4j/core/async/AsyncLoggerContextSelector.html">AsyncLoggerContextSelector</a></dt>
<dd>Creates a LoggerContext that ensures that all loggers are AsyncLoggers.</dd>
<dt><a class="javadoc" href="../log4j-core/apidocs/org/apache/logging/log4j/core/osgi/BundleContextSelector.html">BundleContextSelector</a></dt>