mirror of
https://git.sr.ht/~sircmpwn/tokidoki
synced 2025-12-12 14:17:21 +01:00
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:
parent
228384530e
commit
10587f425b
6 changed files with 99 additions and 1 deletions
11
auth/pam_stub.go
Normal file
11
auth/pam_stub.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
//go:build !pam
|
||||
|
||||
package auth
|
||||
|
||||
import (
|
||||
"errors"
|
||||
)
|
||||
|
||||
func NewPAM() (AuthProvider, error) {
|
||||
return nil, errors.New("PAM support is disabled")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue