|
|
@ -486,10 +486,15 @@ class Protocol {
|
|
|
|
doAuth(host, authzid, user, passwd);
|
|
|
|
doAuth(host, authzid, user, passwd);
|
|
|
|
} catch (IOException ex) { // should never happen, ignore
|
|
|
|
} catch (IOException ex) { // should never happen, ignore
|
|
|
|
logger.log(Level.FINE, "AUTH " + mech + " failed", ex);
|
|
|
|
logger.log(Level.FINE, "AUTH " + mech + " failed", ex);
|
|
|
|
|
|
|
|
thrown = ex;
|
|
|
|
} catch (Throwable t) { // crypto can't be initialized?
|
|
|
|
} catch (Throwable t) { // crypto can't be initialized?
|
|
|
|
logger.log(Level.FINE, "AUTH " + mech + " failed", t);
|
|
|
|
logger.log(Level.FINE, "AUTH " + mech + " failed", t);
|
|
|
|
thrown = t;
|
|
|
|
thrown = t;
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
if (thrown instanceof IOException) {
|
|
|
|
|
|
|
|
close();
|
|
|
|
|
|
|
|
throw (IOException) thrown;
|
|
|
|
|
|
|
|
}
|
|
|
|
if (noauthdebug && isTracing())
|
|
|
|
if (noauthdebug && isTracing())
|
|
|
|
logger.fine("AUTH " + mech + " " +
|
|
|
|
logger.fine("AUTH " + mech + " " +
|
|
|
|
(resp.ok ? "succeeded" : "failed"));
|
|
|
|
(resp.ok ? "succeeded" : "failed"));
|
|
|
|