Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct { auth.ConfigBase `json:"-"` ServiceName string // pam service (e.g. system-auth) EmailDomain string }
Source holds configuration for the PAM login source.
func (*Source) Authenticate ¶
func (source *Source) Authenticate(ctx context.Context, user *user_model.User, userName, password string) (*user_model.User, error)
Authenticate queries if login/password is valid against the PAM, and create a local user if success when enabled.
Click to show internal directories.
Click to hide internal directories.