1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 19:22:22 -05:00

Try default form url on authentication form not found

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1373 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-08-23 21:35:42 +00:00
parent 29dd91b528
commit 70f0cf851e
3 changed files with 4 additions and 3 deletions

View File

@ -422,7 +422,8 @@ public abstract class ExchangeSession {
HttpMethod logonMethod = buildLogonMethod(httpClient, initmethod); HttpMethod logonMethod = buildLogonMethod(httpClient, initmethod);
if (logonMethod == null) { 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 // make sure username and password fields are empty
@ -1079,6 +1080,7 @@ public abstract class ExchangeSession {
/** /**
* Send Mime message. * Send Mime message.
*
* @param mimeMessage MIME message * @param mimeMessage MIME message
* @throws IOException on error * @throws IOException on error
*/ */
@ -1452,6 +1454,7 @@ public abstract class ExchangeSession {
/** /**
* Get permanent message id. * Get permanent message id.
* permanentUrl over WebDav or IitemId over EWS * permanentUrl over WebDav or IitemId over EWS
*
* @return permanent id * @return permanent id
*/ */
public abstract String getPermanentId(); public abstract String getPermanentId();

View File

@ -1,7 +1,6 @@
EXCEPTION_AUTHENTICATION_FAILED=Authentication failed: invalid user or password EXCEPTION_AUTHENTICATION_FAILED=Authentication failed: invalid user or password
EXCEPTION_AUTHENTICATION_FAILED_PASSWORD_EXPIRED=Authentication failed: password expired ? 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_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_CONNECTION_FAILED=Unable to connect to OWA at {0}, status code {1}, check configuration
EXCEPTION_DAVMAIL_CONFIGURATION=DavMail configuration exception:\n{0} EXCEPTION_DAVMAIL_CONFIGURATION=DavMail configuration exception:\n{0}
EXCEPTION_END_OF_STREAM=End of stream reached reading content EXCEPTION_END_OF_STREAM=End of stream reached reading content

View File

@ -1,7 +1,6 @@
EXCEPTION_AUTHENTICATION_FAILED=Echec d''authentification : identifiant ou mot de passe invalide 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_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_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_CONNECTION_FAILED=Connection OWA à {0} impossible, code retour {1}, vérifier la configuration
EXCEPTION_DAVMAIL_CONFIGURATION=Erreur de configuration DavMail :\n{0} EXCEPTION_DAVMAIL_CONFIGURATION=Erreur de configuration DavMail :\n{0}
EXCEPTION_END_OF_STREAM=Fin de flux âtteint pendant la lecture du contenu EXCEPTION_END_OF_STREAM=Fin de flux âtteint pendant la lecture du contenu