You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by sm...@apache.org on 2022/09/23 17:22:08 UTC
[directory-fortress-core] branch master updated: FC-315 - Switch to make remote config optional
This is an automated email from the ASF dual-hosted git repository.
smckinney pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-fortress-core.git
The following commit(s) were added to refs/heads/master by this push:
new dddf2ac2 FC-315 - Switch to make remote config optional
dddf2ac2 is described below
commit dddf2ac2fe5a0f8bcf44b3dd77adbe3dd399a01e
Author: Shawn McKinney <sm...@symas.com>
AuthorDate: Fri Sep 23 12:22:02 2022 -0500
FC-315 - Switch to make remote config optional
---
src/main/java/org/apache/directory/fortress/core/util/Config.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/main/java/org/apache/directory/fortress/core/util/Config.java b/src/main/java/org/apache/directory/fortress/core/util/Config.java
index 228a325d..871db64f 100755
--- a/src/main/java/org/apache/directory/fortress/core/util/Config.java
+++ b/src/main/java/org/apache/directory/fortress/core/util/Config.java
@@ -755,6 +755,11 @@ public final class Config
{
try
{
+ if ( Config.getInstance().getProperty( GlobalIds.CONFIG_REALM ) == null )
+ {
+ LOG.warn( "Config realm not enabled" );
+ return;
+ }
// Retrieve parameters from the config node stored in target LDAP DIT:
String realmName = config.getString( GlobalIds.CONFIG_REALM, "DEFAULT" );
if ( realmName != null && realmName.length() > 0 )