Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(providerName string, options Options, mapper authapi.UserIdentityMapper) (authenticator.Password, error)
New returns an authenticator which will validate usernames/passwords using LDAP.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
Authenticator validates username/passwords against an LDAP v3 server
func (*Authenticator) AuthenticatePassword ¶
func (a *Authenticator) AuthenticatePassword(ctx context.Context, username, password string) (*authenticator.Response, bool, error)
AuthenticatePassword validates the given username and password against an LDAP server
type Options ¶
type Options struct { // URL is a parsed RFC 2255 URL URL ldaputil.LDAPURL // ClientConfig holds information about connecting with the LDAP server ClientConfig ldapclient.Config // UserAttributeDefiner defines the values corresponding to OpenShift Identities in LDAP entries // by using a deterministic mapping of LDAP entry attributes to OpenShift Identity fields. The first // attribute with a non-empty value is used for all but the latter identity field. If no LDAP attributes // are given for the ID address, login fails. UserAttributeDefiner ldaputil.LDAPUserAttributeDefiner }
Options contains configuration for an Authenticator instance
Click to show internal directories.
Click to hide internal directories.