From ae0700bec2c5d388f7750d00b1d6eab1d949eff7 Mon Sep 17 00:00:00 2001
From: Christophe Sovant <christophe.sovant@forgerock.com>
Date: Tue, 27 May 2008 17:30:28 +0000
Subject: [PATCH] Remove hardcoded values for community, context and securityLevel parameters
---
opends/tests/shared/java/snmp/SNMPSet.java | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/opends/tests/shared/java/snmp/SNMPSet.java b/opends/tests/shared/java/snmp/SNMPSet.java
index 4707bf2..aa0325e 100644
--- a/opends/tests/shared/java/snmp/SNMPSet.java
+++ b/opends/tests/shared/java/snmp/SNMPSet.java
@@ -102,11 +102,11 @@
user = val;
break;
case 'l':
- if (val.compareTo("NoAuthNoPriv") == 0) {
+ if (val.compareTo("noauthnopriv") == 0) {
securityLevel = SnmpDefinitions.noAuthNoPriv;
- } else if (val.compareTo("AuthNoPriv") == 0) {
+ } else if (val.compareTo("authnopriv") == 0) {
securityLevel = SnmpDefinitions.authNoPriv;
- } else if (val.compareTo("AuthPriv") == 0) {
+ } else if (val.compareTo("authpriv") == 0) {
securityLevel = SnmpDefinitions.authPriv;
} else {
System.out.println(
@@ -242,7 +242,7 @@
// Set the context name
//
- if (community.compareTo("default") != 0) {
+ if (community.compareTo("null") != 0) {
paramsV3.setContextName(community.getBytes());
}
--
Gitblit v1.10.0