Skip to content

Commit 64102be

Browse files
ysfunknwon
andcommitted
security: fix improper PAM authorization handling (#6819)
Co-authored-by: Joe Chen <[email protected]> # Conflicts: # CHANGELOG.md # internal/auth/pam/pam.go
1 parent 91f2cde commit 64102be

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/auth/pam/pam.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ func PAMAuth(serviceName, userName, passwd string) error {
2727
return err
2828
}
2929

30-
if err = t.Authenticate(0); err != nil {
30+
err = t.Authenticate(0)
31+
if err != nil {
3132
return err
3233
}
33-
34-
return nil
34+
return t.AcctMgmt(0)
3535
}

0 commit comments

Comments
 (0)