HADOOP-12318. Expose underlying LDAP exceptions in SaslPlainServer. Contributed by Mike Yoder.

(cherry picked from commit 28ea4c068ea0152af682058b02311bba81780770)
This commit is contained in:
Aaron T. Myers 2015-08-12 15:16:05 -07:00
parent 65d22b3686
commit 43f386e748
2 changed files with 4 additions and 1 deletions

View File

@ -235,6 +235,9 @@ Release 2.8.0 - UNRELEASED
HADOOP-12280. Skip unit tests based on maven profile rather than
NativeCodeLoader.isNativeCodeLoaded (Masatake Iwasaki via Colin P. McCabe)
HADOOP-12318. Expose underlying LDAP exceptions in SaslPlainServer. (Mike
Yoder via atm)
OPTIMIZATIONS
HADOOP-11785. Reduce the number of listStatus operation in distcp

View File

@ -105,7 +105,7 @@ public class SaslPlainServer implements SaslServer {
authz = ac.getAuthorizedID();
}
} catch (Exception e) {
throw new SaslException("PLAIN auth failed: " + e.getMessage());
throw new SaslException("PLAIN auth failed: " + e.getMessage(), e);
} finally {
completed = true;
}