Documentation
¶
Overview ¶
Package ldapUser provides a Service that uses LDAP for user authentication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
Enabled bool
Host string
Port uint
Secure bool
Username string
Password string
DN string
DNUsers string
DNGroups string
AttributeUsername string
AttributeName string
AttributeEmail string
AttributeGroupID string
AttributeGroupMember string
Groups []string
MaxConnections int
Timeout time.Duration
}
Options are holds LDAP specific parameters.
type Service ¶
Service encapsulates an instance of user.Service and Options to wrap Authenticate method.
func NewService ¶
NewService returns a new instance of Service.
func (Service) Authenticate ¶
Authenticate authenticates a user over LDAP and if authentication fails it falls back to authentication by wrapped user service. If the user did not exist in wrapped user service, it will be created.
Click to show internal directories.
Click to hide internal directories.