Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.4.0, 0.5.0
-
None
-
sshd JAAS used with LDAP based authentication.
Description
The JaasPasswordAuthenticator.authenticate() method currently silently ignores any exceptions being raised and simply returns false in case of any authentication erorrs.
In environments where sshd is used in other frameworks like OSGi, it becomes very difficult to trouble shoot the reasons for the authentication failure.
Rather than simply returning false, I propose to print a logging statement at the least.
catch (Exception e)
{ log.error("Authentication failed with error: " + e.getMessage() + ", cause: " + e.getCause() ); return false; }