Github user sohami commented on a diff in the pull request:

    https://github.com/apache/drill/pull/962#discussion_r141405678
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/rpc/user/security/PamUserAuthenticator.java
 ---
    @@ -59,7 +59,8 @@ public void authenticate(String user, String password) 
throws UserAuthentication
         for (String pamProfile : profiles) {
           Pam pam = new Pam(pamProfile);
           if (!pam.authenticateSuccessful(user, password)) {
    -        throw new UserAuthenticationException(String.format("PAM profile 
'%s' validation failed", pamProfile));
    +        throw new UserAuthenticationException(String.format("PAM profile 
'%s' validation failed for user %s",
    --- End diff --
    
    No the exceptions thrown here is directly mapped to Sasl Exception and sent 
back to client with AUTH_FAILED status.


---

Reply via email to