Documentation
¶
Index ¶
- Variables
- type Backend
- func (s *Backend) CanUsersRegister() bool
- func (s *Backend) Close()
- func (s *Backend) CreateUser(user storage.User) error
- func (s *Backend) GenerateSecurePassword(password string) (string, error)
- func (s *Backend) Login(username, password string) (*storage.User, error)
- func (s *Backend) UserCanChangePassword() bool
- type LDAPAuthPlugin
- type Options
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { *Options // contains filtered or unexported fields }
Backend is an authentication backend that queries an LDAP/Active Directory server for authentication
func Init ¶
func Init(db authentication.AuthStorageBackend, cfg authentication.PluginSettings) (*Backend, error)
Init creates a new LDAP authentication backend
func (*Backend) CanUsersRegister ¶
CanUsersRegister is disabled in the LDAP authentication backend
func (*Backend) CreateUser ¶
CreateUser is disabled in the LDAP authentication backend
func (*Backend) GenerateSecurePassword ¶
GenerateSecurePassword is disabled in the LDAP authentication backend
func (*Backend) UserCanChangePassword ¶
UserCanChangePassword is disabled in the LDAP authentication backend
type LDAPAuthPlugin ¶
type LDAPAuthPlugin struct{}
func (*LDAPAuthPlugin) Open ¶
func (s *LDAPAuthPlugin) Open(db authentication.AuthStorageBackend, cfg authentication.PluginSettings) (authentication.AuthAPI, error)
Click to show internal directories.
Click to hide internal directories.