*/
protected BindOperationContext doBindOperation( LdapDN bindDn, byte[] credentials, String saslMechanism,
String saslAuthId ) throws Exception
{
// setup the op context and populate with request controls
BindOperationContext opCtx = new BindOperationContext( null );
opCtx.setDn( bindDn );
opCtx.setCredentials( credentials );
opCtx.setSaslMechanism( saslMechanism );
opCtx.setSaslAuthId( saslAuthId );
opCtx.addRequestControls( requestControls );
// execute bind operation
OperationManager operationManager = service.getOperationManager();
operationManager.bind( opCtx );
// clear the request controls and set the response controls
requestControls = EMPTY_CONTROLS;
responseControls = opCtx.getResponseControls();
return opCtx;
}