@Test(enabled = false)
public void testBindDisconnectInPreParseSASL()
throws Exception
{
Socket s = new Socket("127.0.0.1", TestCaseUtils.getServerLdapPort());
LDAPReader r = new LDAPReader(s);
LDAPWriter w = new LDAPWriter(s);
s.setSoTimeout(6000);
ByteString saslCreds =
ByteString.valueOf("\u0000dn:cn=Directory Manager\u0000password");
BindRequestProtocolOp bindRequest =
new BindRequestProtocolOp(ByteString.empty(), "PLAIN", saslCreds);
LDAPMessage message = new LDAPMessage(1, bindRequest,
DisconnectClientPlugin.createDisconnectControlList("PreParse"));
w.writeMessage(message);
message = r.readMessage();
if (message != null)
{
// If we got an element back, then it must be a notice of disconnect
// unsolicited notification.
assertEquals(message.getProtocolOpType(), OP_TYPE_EXTENDED_RESPONSE);