(401) Unauthorized – The HTTP request is unauthorized with client authentication scheme ‘Negotiate’. The authentication header received from the server was ‘NTLM,Basic.

Shape Image One
(401) Unauthorized - The HTTP request is unauthorized with client authentication scheme 'Negotiate'. The authentication header received from the server was 'NTLM,Basic.
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
                     credentials provided. Please check the credentials and try again. Falha na chamada a https://webmail.dominio.com.br/EWS/mrsproxy.svc‘. 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.. –> 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: Falha na chamada a ‘https://webmail.dominio.com.br/EWS/mrsproxy.svc’.
                     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.

Deixe um comentário

O seu endereço de e-mail não será publicado.