Open LxanderUA opened 4 months ago
Hi @LxanderUA
Are you getting this error while trying to connect to Office 365?
Sebastian
Trying to connect to Exchange 2010
Had the same error. Found out I forgot to specify my domain. So the Account ID must be domain\username.
@EarMobileh Thank you!
@LxanderUA I just wanted to add that if you are trying to connect to a internal exchange server, use ip addess in the account server portion and you should disable the transport verification in Admin Section -> EWS Connector -> Transport verification (SSL Verification), as the ssl certificate will not match properly for a internal server.
Sebastian
Hi @LxanderUA
Are you getting this error while trying to connect to Office 365?
Sebastian
Hi, I get this error while trying to connect Office 365. The log file contains the following entry:
Fehler: Could not link Microsoft account: Client error: POST https://login.microsoftonline.com/our_tenant_id/oauth2/v2.0/token
resulted in a 400 Bad Request
response:
{"error":"invalid_request","error_description":"AADSTS900144: The request body must contain the following parameter: 'co (truncated...)
I took the settings from the https://github.com/ksainc/integration_ews/blob/main/docs/o365.md configuration.
EDIT: I found a solution to my problem. I use PHP8.3-FPM and the utf8_decode function is marked as DEPRECATED. That's why I had to replace the function in the lib/Components/EWS/EWSClient.php, file line 422, with the function mb_convert_encoding:
mb_convert_encoding($this->_transport_authentication->Secret, 'ISO-8859-1', 'UTF-8');
Nextcloud Hub 7 (28.0.1) Exchange EWS Connector (1.0.37) from app store Installed without errors.
At connecting account received error: Could not resolve host: EWS![Exchange](https://github.com/ksainc/integration_ews/assets/34854049/fac6aad3-6626-498f-965a-c0568563a228)