Salve galera! Durante uma implementação híbrida de Exchange Server 2010 e Microsoft Exchange Online a seguinte mensagem de erro era apresentada quando um move-request de uma mailbox era iniciado:
Microsoft.Exchange.Migration.MigrationServerConnectionFailedException: Não foi possível concluir a conexão ao servidor ‘webmail.dominio.com.br’. —>
Microsoft.Exchange.MailboxReplicationService.RemotePermanentException: The Mailbox Replication Service was unable to connect to the remote server using the
request is unauthorized with client authentication scheme ‘Negotiate’. The authentication header received from the server was ‘NTLM,Basic
realm=”webmail.dominio.com.br”‘. –> The remote server returned an error: (401) Unauthorized.. –> The HTTP request is unauthorized with client authentication scheme
‘Negotiate’. The authentication header received from the server was ‘NTLM,Basic realm=”webmail.dominio.com.br”‘. –> The remote server returned an error: (401)
Detalhes do erro: The HTTP request is unauthorized with client authentication scheme ‘Negotiate’. The authentication header received from the server was ‘NTLM,Basic
realm=”webmail.dominio.com.br”‘. –> The remote server returned an error: (401) Unauthorized.. —>
Microsoft.Exchange.MailboxReplicationService.RemotePermanentException: The HTTP request is unauthorized with client authentication scheme ‘Negotiate’. The
authentication header received from the server was ‘NTLM,Basic realm=”webmail.dominio.com.br”‘. —>
Microsoft.Exchange.MailboxReplicationService.RemotePermanentException: The remote server returned an error: (401) Unauthorized.
Correção:
O problema é que o método de autenticação necessário não está habilitado no IIS do Exchange Server 2010, acesse o EWS através do IIS e altere o método de autenticação para Negotiate.
Um grande abraço e até o próximo artigo.
Fui premiado como Microsoft MVP por três anos consecutivos e atualmente atuo como Head de Security, apoiando clientes com soluções de arquiteturas e segurança em nuvem.