Connectivity Test Failed Exchange server

Ibrahim Shawky 20 Reputation points
2023-07-09T11:41:23.4266667+00:00

User's image

Exchange | Exchange Server | Other
0 comments No comments
{count} votes

Accepted answer
  1. Konstantinos Passadis 19,591 Reputation points MVP
    2023-07-09T12:23:58.77+00:00

    Hello @Ibrahim Shawky !

    Thanks for the update it is clear now

    Basic Authenication got deprecated since October 2022

    As of this date, Basic Authentication is no longer accepted; you have to use OAuth 2.0 (modern authentication) for your connections. This is likely the cause of the 401 Unauthorized error message.

    I think i know where to point you

    The thread below is a similar issue

    https://learn.microsoft.com/en-us/answers/questions/751378/microsoft-exchange-webservices-data-(401)-unauthor

    To start with something ----------->

    You have to :

    Register your Application in Azure Active Directory: Go to Azure Portal -> Azure Active Directory -> App registrations -> New registration. Note down the Application (client) ID, you will need it in your code.

    1. Register your application with Azure Active Directory.
      
    2. Add code to get an authentication token to get an authentication token from a token server.
      
    3. Add an authentication token to EWS requests that you send.
      

    Have a look also here :

    https://learn.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Konstantinos Passadis 19,591 Reputation points MVP
    2023-07-09T12:02:47.9966667+00:00

    Hello @Ibrahim Shawky !

    Welcome to Microsoft QnA!

    Please try to include as more info as you can into your Questions

    The more info we get the more help could be available

    Now , the message is most likely caused by wrong credentials , username / password

    Try to use he UPN of the user

    Have a look here also :

    https://community.spiceworks.com/topic/2284165-exchange-2016-autodiscover-401-unauthorized

    I hope this helps!

    Kindly mark the answer as Accepted and Upvote in case it helped!

    Regards


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.