auth: add PAM support

Handy for small local installations.

Disabled by default because it adds a dependency on the PAM
library.
This commit is contained in:
Simon Ser 2022-09-10 17:13:20 +00:00 committed by Conrad Hoffmann
parent 228384530e
commit 10587f425b
6 changed files with 99 additions and 1 deletions

11
auth/pam_stub.go Normal file
View file

@ -0,0 +1,11 @@
//go:build !pam
package auth
import (
"errors"
)
func NewPAM() (AuthProvider, error) {
return nil, errors.New("PAM support is disabled")
}