diff --git a/src/java/davmail/exchange/ExchangeSession.java b/src/java/davmail/exchange/ExchangeSession.java index 6ab1b56d..23c2c7dc 100644 --- a/src/java/davmail/exchange/ExchangeSession.java +++ b/src/java/davmail/exchange/ExchangeSession.java @@ -422,7 +422,8 @@ public abstract class ExchangeSession { HttpMethod logonMethod = buildLogonMethod(httpClient, initmethod); if (logonMethod == null) { - throw new DavMailException("EXCEPTION_AUTHENTICATION_FORM_NOT_FOUND", initmethod.getURI()); + LOGGER.debug("Authentication form not found at " + initmethod.getURI()+ ", trying default url"); + logonMethod = new PostMethod("/owa/auth/owaauth.dll"); } // make sure username and password fields are empty @@ -1079,6 +1080,7 @@ public abstract class ExchangeSession { /** * Send Mime message. + * * @param mimeMessage MIME message * @throws IOException on error */ @@ -1452,6 +1454,7 @@ public abstract class ExchangeSession { /** * Get permanent message id. * permanentUrl over WebDav or IitemId over EWS + * * @return permanent id */ public abstract String getPermanentId(); diff --git a/src/java/davmailmessages.properties b/src/java/davmailmessages.properties index f24c93d9..4826cc36 100644 --- a/src/java/davmailmessages.properties +++ b/src/java/davmailmessages.properties @@ -1,7 +1,6 @@ EXCEPTION_AUTHENTICATION_FAILED=Authentication failed: invalid user or password EXCEPTION_AUTHENTICATION_FAILED_PASSWORD_EXPIRED=Authentication failed: password expired ? EXCEPTION_AUTHENTICATION_FAILED_RETRY=Authentication failed: invalid user or password, retry with domain\\user -EXCEPTION_AUTHENTICATION_FORM_NOT_FOUND=Authentication form not found at {0} EXCEPTION_CONNECTION_FAILED=Unable to connect to OWA at {0}, status code {1}, check configuration EXCEPTION_DAVMAIL_CONFIGURATION=DavMail configuration exception:\n{0} EXCEPTION_END_OF_STREAM=End of stream reached reading content diff --git a/src/java/davmailmessages_fr.properties b/src/java/davmailmessages_fr.properties index a7f183f3..71ef0f28 100644 --- a/src/java/davmailmessages_fr.properties +++ b/src/java/davmailmessages_fr.properties @@ -1,7 +1,6 @@ EXCEPTION_AUTHENTICATION_FAILED=Echec d''authentification : identifiant ou mot de passe invalide EXCEPTION_AUTHENTICATION_FAILED_PASSWORD_EXPIRED=Echec d''authentification : mot de passe expiré ? EXCEPTION_AUTHENTICATION_FAILED_RETRY=Echec d''authentification : identifiant ou mot de passe invalide, réessayer avec domaine\\utilisateur -EXCEPTION_AUTHENTICATION_FORM_NOT_FOUND=Formulaire d''authentification non trouvé à l''adresse {0} EXCEPTION_CONNECTION_FAILED=Connection OWA à {0} impossible, code retour {1}, vérifier la configuration EXCEPTION_DAVMAIL_CONFIGURATION=Erreur de configuration DavMail :\n{0} EXCEPTION_END_OF_STREAM=Fin de flux âtteint pendant la lecture du contenu