boolean result;
try
{
result = provider.authenticate( getLdapSession().getIoSession(), response );
Dn dn = getBindRequest().getName();
dn.apply( getLdapSession().getLdapServer().getDirectoryService().getSchemaManager() );
LdapPrincipal ldapPrincipal = new LdapPrincipal( getAdminSession().getDirectoryService().getSchemaManager(),
dn, AuthenticationLevel.STRONG );
getLdapSession().putSaslProperty( SaslConstants.SASL_AUTHENT_USER, ldapPrincipal );
getLdapSession().putSaslProperty( Context.SECURITY_PRINCIPAL, getBindRequest().getName().toString() );
}