saslRequest.addAllControls( ctrls );
try
{
LoginContext loginContext = new LoginContext( "ldapnetworkconnection",
new SaslCallbackHandler( saslRequest ) );
loginContext.login();
// Now, bind by calling the internal bindSasl method
BindFuture future = ( BindFuture ) Subject.doAs( loginContext.getSubject(),
new PrivilegedExceptionAction<Object>()