Socket s = new Socket("127.0.0.1", TestCaseUtils.getServerLdapPort());
org.nasutekds.server.tools.LDAPReader r = new org.nasutekds.server.tools.LDAPReader(s);
LDAPWriter w = new LDAPWriter(s);
s.setSoTimeout(3000);
BindRequestProtocolOp bindRequest =
new BindRequestProtocolOp(
ByteString.valueOf("uid=test.user,o=test"),
3, ByteString.valueOf("password"));
LDAPMessage message = new LDAPMessage(1, bindRequest);
w.writeMessage(message);