From 26ed98c04d49d65e7348ae885d6f98c2f61634fe Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Wed, 19 Nov 2008 21:48:39 +0000
Subject: [PATCH] Remove superfluous ds-cfg-cipher-strength attribute. This attribute has no effect on server DIGEST-MD5 SASL cipher selection and is being removed.
---
opends/src/server/org/opends/server/extensions/DigestMD5SASLMechanismHandler.java | 26 --------------------------
1 files changed, 0 insertions(+), 26 deletions(-)
diff --git a/opends/src/server/org/opends/server/extensions/DigestMD5SASLMechanismHandler.java b/opends/src/server/org/opends/server/extensions/DigestMD5SASLMechanismHandler.java
index 56106d5..cd2de57 100644
--- a/opends/src/server/org/opends/server/extensions/DigestMD5SASLMechanismHandler.java
+++ b/opends/src/server/org/opends/server/extensions/DigestMD5SASLMechanismHandler.java
@@ -116,9 +116,6 @@
String QOP = getQOP(configuration);
saslProps = new HashMap<String,String>();
saslProps.put(Sasl.QOP, QOP);
- if(QOP.equalsIgnoreCase(SASL_MECHANISM_CONFIDENTIALITY)) {
- saslProps.put(Sasl.STRENGTH, getStrength(configuration));
- }
String realm=getRealm(configuration);
if(realm != null) {
msg = INFO_DIGEST_MD5_REALM.get(realm);
@@ -254,9 +251,6 @@
String QOP = getQOP(configuration);
saslProps = new HashMap<String,String>();
saslProps.put(Sasl.QOP, QOP);
- if(QOP.equalsIgnoreCase(SASL_MECHANISM_CONFIDENTIALITY)) {
- saslProps.put(Sasl.STRENGTH, getStrength(configuration));
- }
String realm=getRealm(configuration);
if(realm != null) {
msg = INFO_DIGEST_MD5_REALM.get(realm);
@@ -279,26 +273,6 @@
/**
- * Retrieves the cipher strength string to use if confidentiality is enforce.
- * This determination is the lowest value that the server can use.
- *
- * @param configuration The configuration to examine.
- * @return The cipher strength string.
- */
- private String
- getStrength(DigestMD5SASLMechanismHandlerCfg configuration) {
- CipherStrength strength = configuration.getCipherStrength();
- if(strength.equals(CipherStrength.HIGH)) {
- return "high";
- } else if(strength.equals(CipherStrength.MEDIUM)) {
- return "high,medium";
- } else {
- return "high,medium,low";
- }
- }
-
-
- /**
* Retrieves the QOP (quality-of-protection) from the specified
* configuration.
*
--
Gitblit v1.10.0