From 274fabb7abf13cf76e2b4328cc269115d83d3aef Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 25 Sep 2006 03:05:30 +0000
Subject: [PATCH] Fix a bug in the LDAP command line tools in which they don't actually support SASL EXTERNAL authentication even though they claim to.
---
opends/src/server/org/opends/server/tools/LDAPConnection.java | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/LDAPConnection.java b/opends/src/server/org/opends/server/tools/LDAPConnection.java
index 5aef5c6..ec17bf9 100644
--- a/opends/src/server/org/opends/server/tools/LDAPConnection.java
+++ b/opends/src/server/org/opends/server/tools/LDAPConnection.java
@@ -270,7 +270,13 @@
}
String result = null;
- if(connectionOptions.getSASLMechanism() != null)
+ if (connectionOptions.useSASLExternal())
+ {
+ result = handler.doSASLExternal(new ASN1OctetString(bindDN),
+ connectionOptions.getSASLProperties(),
+ requestControls, responseControls);
+ }
+ else if (connectionOptions.getSASLMechanism() != null)
{
result = handler.doSASLBind(new ASN1OctetString(bindDN), bindPW,
connectionOptions.getSASLMechanism(),
--
Gitblit v1.10.0