TestCaseUtils.dsconfig(
"set-global-configuration-prop",
"--set", "return-bind-error-messages:false");
bindOperation =
conn.processSimpleBind(ByteString.valueOf("cn=Directory Manager"),
ByteString.valueOf("wrongpassword"));
assertEquals(bindOperation.getResultCode(), ResultCode.INVALID_CREDENTIALS);
assertTrue(((bindOperation.getErrorMessage() == null) ||
(bindOperation.getErrorMessage().length() == 0)),
bindOperation.getErrorMessage().toString());