{
throw new IllegalStateException( "Client is not connected." );
}
// Setup the bind request
BindRequestImpl request = new BindRequestImpl( 1 ) ;
request.setName( new DN( "uid=admin,ou=system" ) ) ;
request.setSimple( false ) ;
request.setCredentials( type1response ) ;
request.setSaslMechanism( mechanism );
request.setVersion3( true ) ;
// Setup the ASN1 Encoder and Decoder
MessageEncoder encoder = new MessageEncoder();
MessageDecoder decoder = new MessageDecoder( new BinaryAttributeDetector() {
public boolean isBinary( String attributeId )