This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/master by this push:
     new 042efcc  [KARAF-6357] Use basic encryption by default
     new f93e320  Merge pull request #1061 from jbonofre/KARAF-6357
042efcc is described below

commit 042efcc5e1a5f13cc00c0375bf3f97288cc29a0b
Author: Jean-Baptiste Onofré <jbono...@apache.org>
AuthorDate: Tue Jan 14 08:09:43 2020 +0100

    [KARAF-6357] Use basic encryption by default
---
 .../src/main/java/org/apache/karaf/jaas/modules/impl/Activator.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/impl/Activator.java 
b/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/impl/Activator.java
index 9e2a8aa..8feff9e 100644
--- 
a/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/impl/Activator.java
+++ 
b/jaas/modules/src/main/java/org/apache/karaf/jaas/modules/impl/Activator.java
@@ -64,7 +64,6 @@ public class Activator extends BaseActivator implements 
ManagedService {
         props.put("name", "basic");
         register(EncryptionService.class, new BasicEncryptionService(), props);
 
-
         Map<String, Object> config = getConfig();
 
         karafRealm = new KarafRealm(bundleContext, config);
@@ -101,7 +100,7 @@ public class Activator extends BaseActivator implements 
ManagedService {
     private Map<String, Object> getConfig() {
         Map<String, Object> config = new HashMap<>();
         populate(config, "detailed.login.exception", "false");
-        populate(config, ENCRYPTION_NAME, "");
+        populate(config, ENCRYPTION_NAME, "basic");
         populate(config, ENCRYPTION_ENABLED, "false");
         populate(config, ENCRYPTION_PREFIX, "{CRYPT}");
         populate(config, ENCRYPTION_SUFFIX, "{CRYPT}");

Reply via email to