From 27442dd0dcfec710f241d6d53574a6fdafb6f92a Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Mon, 20 Sep 2010 21:06:56 +0000
Subject: [PATCH] Added QOP, cipher, and other config parameters to the Digest-MD5 and GSSAPI SASL bind request objects.
---
sdk/tests/unit-tests-testng/src/org/opends/sdk/ConnectionFactoryTestCase.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/sdk/tests/unit-tests-testng/src/org/opends/sdk/ConnectionFactoryTestCase.java b/sdk/tests/unit-tests-testng/src/org/opends/sdk/ConnectionFactoryTestCase.java
index 1bde983..a3a876f 100644
--- a/sdk/tests/unit-tests-testng/src/org/opends/sdk/ConnectionFactoryTestCase.java
+++ b/sdk/tests/unit-tests-testng/src/org/opends/sdk/ConnectionFactoryTestCase.java
@@ -35,6 +35,7 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
+import org.opends.sdk.requests.DigestMD5SASLBindRequest;
import org.opends.sdk.requests.Requests;
import org.opends.sdk.requests.SearchRequest;
import org.testng.annotations.BeforeClass;
@@ -148,7 +149,9 @@
factories[6][0] = new AuthenticatedConnectionFactory(
new LDAPConnectionFactory("localhost", TestCaseUtils.getLdapPort(),
options), Requests.newDigestMD5SASLBindRequest("id:user",
- ByteString.valueOf("password")));
+ ByteString.valueOf("password")).setQOP(
+ DigestMD5SASLBindRequest.QOPOption.AUTH_CONF).setCipher(
+ DigestMD5SASLBindRequest.CipherOption.TRIPLE_DES_RC4));
return factories;
}
--
Gitblit v1.10.0