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:

​

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

220
vtbrian•

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.

3
ez4me2c3d•

😲

1
[deleted]•

[deleted]

1
HotButteredGopherOP•

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).

1
vtbrian•

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.

2
HotButteredGopherOP•

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.

1
vtbrian•

Did you associate that impersonation user to the new Enterprise Application in Azure AD where you got the Client ID/Client Secret from?

1
Initial_Art_126•

I had the same issue, tried OAuth2 many times and it failed. Cisco TAC finally sent us an easy to follow document to create a cloud only account, and it worked liked a charm. I had been on this quest on and off for 2 years. They had identified a bug and this document help. Ask TAC for the document.

​

BTW, once we simply followed the steps to create the cloud only account, everything just worked with some patience.

For some reason, after I configure Unity for OAUth2, it didn't work right away. Testing failed. I took a 30 minutes break, and retested, and it worked. It was odd to fail immediately after the configuring Unity.

​

Notes from my tac case:

Would it be possible to test by using a cloud account only instead of on prem user account ?

We have an scenario recently discovered with Azure Hybrid deployments with Office365 using Oauth2.0 mode of authentication where customer has users , administrators and other entities on Microsoft Active Directory and ADFS On-Prem for authentication and Azure AD on cloud to configure an application with unity connection .With this topology , We are unable to get the Oauth2.0 token from MS Azure login URL leading to Unified Messaging to fail for voicemail and office365.

Issue is due to limitation from Microsoft side mentioned in below doc which says the authentication flow that unity uses with MS in oauth2.0 is ROPC (Resource Owner Password Credential) which doesn't support hybrid identity federation scenarios (for example, Azure AD and ADFS used to authenticate on-premises accounts)

More details available on following link - https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-oauth-ropc

Defect for this issue: CSCvv50421

Hybrid Integration with CUC SIB Ouath2.0 requires workaround to work due to Microsoft Limitation

https://bst.cloudapps.cisco.com/bugsearch/bug/CSCvv50421

Workaround: Use a Cloud Only User rather than Onprem User

I’ve attached a document that ilustrate the complete step by step process.

3
HotButteredGopherOP•

I'm using a word doc titled "Modern Authentication - OAuth2.docx" that was provided by TAC a week ago. We are aware of CSCvv50421, however my O365 team has assured me that this account is cloud only.

I've asked to have the account re-created because you may be right.

1
Any-Accountant-8431•

Where would this attachment be found? Thanks!

1
mavetech•

Make sure the serivce account is created online and not on the local domain. I have had several customers make this mistake.

2
HotButteredGopherOP•

TAC suggested that this account be "cloud only", and my O365 admin has confirmed that this account is indeed cloud only. We do have a hybrid setup, if it matters.

1
mavetech•

Was it created in the cloud? I am no MS expert, but I had a customer who swore up and down the account was cloud only. It was but was created through the local domain somehow. I have tried to talk to my engineer the worked on that, but he has no idea how that happened. I would have account removed and rebuilt with a different username trough the cloud. Just an idea.

Funny part is that even thou MS said basic would-be off Oct 1, we still have lots of customers that say it still works with having to have it reenabled.

2
HotButteredGopherOP•

I have no insight to the O365 side, so I'm relying on others to create the account. I have asked for the account to be re-created as per the latest guide though.

MS has delayed turning off basic auth again (if you take action to make an exception). The new timeframe is "early January 2023"

https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online

1
_cheefy•

Try using a service account with a domain that matches the users' email address rather than onmicrosoft.com

1
jaaronstwo•

I am having similar issues, have an open TAC case.

1
PinsDrop•

Follow all the steps in the guide. The last step that is missing is in azure portal. Go to Entreprise Apps, choose the unity connection app you made. Assgin users, then choose your cisco unity service account with default access. Once we did this our next test successfully passed.

1
HotButteredGopherOP•

For all of those that come after me:

The problem was that multi-factor authentication was enabled for this account. Once it was disabled everything worked as expected.

1