karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [1/2] karaf git commit: [KARAF-4995] Disable LDAP caching by default
Date Thu, 02 Mar 2017 13:34:34 GMT
Repository: karaf
Updated Branches:
  refs/heads/master 96b8617c8 -> 324cdeed1


[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/d4ed951e
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/d4ed951e
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/d4ed951e

Branch: refs/heads/master
Commit: d4ed951ea33ab8259d8c9e63d4e2897d9b26c2d5
Parents: 96b8617
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:19:53 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/d4ed951e/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 c0bd75b..fb5c1e7 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
@@ -268,7 +268,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