karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject karaf git commit: [KARAF-4995] Disable LDAP caching by default
Date Thu, 02 Mar 2017 13:34:56 GMT
Repository: karaf
Updated Branches:
  refs/heads/karaf-4.0.x e6403127b -> b8f1b777a


[KARAF-4995] Disable LDAP caching by default


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/b8f1b777
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/b8f1b777
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/b8f1b777

Branch: refs/heads/karaf-4.0.x
Commit: b8f1b777a111ea697ea0b6d9085d89fba1b48e41
Parents: e640312
Author: jpoth <poth.john@gmail.com>
Authored: Fri Feb 24 15:39:51 2017 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Thu Mar 2 14:34:51 2017 +0100

----------------------------------------------------------------------
 .../main/java/org/apache/karaf/jaas/modules/ldap/LDAPOptions.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/b8f1b777/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPOptions.java
----------------------------------------------------------------------
diff --git a/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPOptions.java
b/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPOptions.java
index fca874a..15bd6bf 100644
--- a/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPOptions.java
+++ b/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/ldap/LDAPOptions.java
@@ -266,7 +266,8 @@ public class LDAPOptions {
     }
 
     public boolean getDisableCache() {
-        return Boolean.parseBoolean((String) options.get(DISABLE_CACHE));
+        final Object object = options.get(DISABLE_CACHE);
+        return object == null ? true : Boolean.parseBoolean((String) object);
     }
 
 }


Mime
View raw message