Subject subject = getSubject( ldapSession.getLdapServer() );
final String saslHost = ( String ) ldapSession.getSaslProperty( SaslConstants.SASL_HOST );
final Map<String, String> saslProps = ( Map<String, String> ) ldapSession
.getSaslProperty( SaslConstants.SASL_PROPS );
CoreSession adminSession = ldapSession.getLdapServer().getDirectoryService().getAdminSession();
final CallbackHandler callbackHandler = new GssapiCallbackHandler( ldapSession, adminSession, bindRequest );
ss = ( SaslServer ) Subject.doAs( subject, new PrivilegedExceptionAction<SaslServer>()
{