.get(Context.SECURITY_CREDENTIALS));
BindOp bind = new BindOp(principal, credential, null, null);
client.doOperation(bind, connCtsl);
result = bind.getResult();
} else if (authMech == SaslBind.AuthMech.SASL) {
result = saslBind.doSaslBindOperation(env, client, connCtsl);
}
if (LdapUtils.getExceptionFromResult(result) != null) {
throw LdapUtils.getExceptionFromResult(result);
}