* @throws IOException
* @throws NamingException
*/
private void bind( int messageId ) throws EncoderException, DecoderException, IOException, NamingException
{
BindRequest bindRequest = new BindRequest();
LdapMessage message = new LdapMessage();
LdapAuthentication authentication = new SimpleAuthentication();
( ( SimpleAuthentication ) authentication ).setSimple( StringTools.getBytesUtf8( password ) );
bindRequest.setAuthentication( authentication );
bindRequest.setName( new LdapDN( user ) );
bindRequest.setVersion( 3 );
message.setProtocolOP( bindRequest );
message.setMessageId( messageId );
// Encode and send the bind request