summaryrefslogtreecommitdiffstats
path: root/modules/auth/pam/pam.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/auth/pam/pam.go')
-rw-r--r--modules/auth/pam/pam.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/auth/pam/pam.go b/modules/auth/pam/pam.go
index 30f13e440b..0a3d8e9f91 100644
--- a/modules/auth/pam/pam.go
+++ b/modules/auth/pam/pam.go
@@ -34,6 +34,10 @@ func Auth(serviceName, userName, passwd string) (string, error) {
if err = t.Authenticate(0); err != nil {
return "", err
}
+
+ if err = t.AcctMgmt(0); err != nil {
+ return "", err
+ }
// PAM login names might suffer transformations in the PAM stack.
// We should take whatever the PAM stack returns for it.