ksainc / integration_ews

Nextcloud EWS Connector (Exchange Web Services)
GNU Affero General Public License v3.0
24 stars 1 forks source link

Could not resolve host: EWS #36

Open LxanderUA opened 4 months ago

LxanderUA commented 4 months ago

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

ksainc commented 4 months ago

Hi @LxanderUA

Are you getting this error while trying to connect to Office 365?

Sebastian

LxanderUA commented 4 months ago

Trying to connect to Exchange 2010

EarMobileh commented 3 months ago

Had the same error. Found out I forgot to specify my domain. So the Account ID must be domain\username.

ksainc commented 3 months ago

@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

ein-genie commented 2 months ago

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');