Struggling to move from basic to modern authentication for unified messaging
Basic authentication has been working well for us for some time now, however with Microsoft O365 retiring it, we are trying to move to modern authentication, and really having a hard time.
My O365 team have triple checked that the application and service account have been setup as per the guide provided by TAC.
When I go to Unified Messaging Services in CUC and press the test button, there is a delay, then a number of failure messages.
Failure messages:
- Service "COMPANY-TEST-OAUTH": AuthenticationMode=[OAuth2] [use HTTPS/no-validate] Search Domain=[outlook.office365.com] Site=[.] Types=[Exchange 2007 or above] [use LDAP] Username=[[email protected]]
- Failed to locate a Domain Controller via DNS.
- Failed connected to Exchange CAS server at (https://outlook.office365.com/autodiscover/autodiscover.xml)
​
Troubleshooting
- CUC CLI: utils network ping outlook.office365.com is successful
- CSCvv50421 - While we do have a hybrid O365 environment, the user account is cloud only
- The user account password does not have special characters
- The client secret DOES have special characters
- When looking at the O365 user account login logs, there are no entries (no failure or success messages).
​
I have a TAC case open, and my engineer has been helpful, but we haven't figured things out yet.
I do not have any access to the O365 or Azure side of the house, so I'm having a hard time knowing what to request from them.
Posted Oct 4, 2022, 2:37 PM UTC
You still have to keep the old account for autodiscovery which is still Basic Authentication. Make sure to add that account under the Enterprise Application you create as well. That autodiscovery account can't have special characters in the password.
😲
[deleted]
I don't quite understand what you are saying. Do you mean that I need to enter both users into Unity Connection somewhere? The configuration guide provided by TAC doesn't go over what you are describing (although I'm willing to try anything).
When you add/edit an O365 Messaging Service in Unity Connection and select OAuth2, there's the top section looking for Application (Client) ID*, Client Secret*, and Directory ID*. Then you set "Active Directory DNS Domain Name" to outlook.office365.com then under "Account Used to Access Exchange", there's another username/password which is used for autodiscovery to find your tenant. That would be the old impersonation account but needs to be added as a user under assigned to that new Application you build in Azure AD.
Thank you for the explanation. Yes, we do have a single user account with the impersonation role, as well as the new application (client id, client secret, etc) configured in Unity Connection.
I had thought you were saying there are two user accounts + the application credentials.
Did you associate that impersonation user to the new Enterprise Application in Azure AD where you got the Client ID/Client Secret from?