security: fix improper PAM authorization handling (#6819)

Co-authored-by: Joe Chen <jc@unknwon.io>
# Conflicts:
#	CHANGELOG.md
#	internal/auth/pam/pam.go
pull/6378/merge
ysf 2022-03-08 13:02:01 +01:00 committed by Joe Chen
parent 91f2cde5e9
commit 64102be2c9
No known key found for this signature in database
GPG Key ID: 0BDE5280C552FF60
1 changed files with 3 additions and 3 deletions

View File

@ -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)
}