Skip to content

Commit

Permalink
security: fix improper PAM authorization handling (#6819)
Browse files Browse the repository at this point in the history
Co-authored-by: Joe Chen <jc@unknwon.io>
# Conflicts:
#	CHANGELOG.md
#	internal/auth/pam/pam.go
  • Loading branch information
ysf authored and unknwon committed Mar 11, 2022
1 parent 91f2cde commit 64102be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/auth/pam/pam.go
Expand Up @@ -27,9 +27,9 @@ func PAMAuth(serviceName, userName, passwd string) error {
return err
}

if err = t.Authenticate(0); err != nil {
err = t.Authenticate(0)
if err != nil {
return err
}

return nil
return t.AcctMgmt(0)
}

0 comments on commit 64102be

Please sign in to comment.