Discover Packages
github.com/openshift/library-go
pkg
security
ldapclient
package
Version:
v0.0.0-...-6018a90
Opens a new window with list of versions in this module.
Published: Dec 18, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 61
Opens a new window with list of known importers.
Documentation
Documentation
¶
func ConnectMaybeBind(clientConfig Config ) (ldap.Client, error )
ConnectMaybeBind returns an ldap.Client with an active connection. It attempts
to bind if bind credentials were provided and would fail if the bind fails.
The caller is responsible for closing the connection.
type Config interface {
Connect() (client ldap.Client, err error )
GetBindCredentials() (bindDN, bindPassword string )
Host() string
}
Config knows how to connect to an LDAP server and can describe which server it is connecting to
NewLDAPClientConfig returns a new LDAP client config
Source Files
¶
Click to show internal directories.
Click to hide internal directories.