# Functions
GetCacheNames returns the set of cache names for the requested protocol and cache backends.
GetWebAuthnFromRedis returns the user object from Redis based on the unique user ID.
InitHTTPClient initializes the global httpClient variable with a pre-configured instance from util.NewHTTPClient.
LDAPAuthWorker is a function that handles LDAP authentication requests.
LDAPMainWorker is a function that handles LDAP requests in a worker thread.
LoadCacheFromRedis loads the cache value from Redis and unmarshals it into the provided cache pointer.
LoaderModLDAP is a function that returns a LGFunction.
LookupUserAccountFromRedis returns the user account value from the user Redis hash.
LuaLDAPSearch searches for entries in an LDAP directory based on the provided context.
LuaMainWorker is responsible for executing Lua scripts using the provided context.
NewPool creates a new LDAPPool object based on the provided context and poolType.
NewUser creates and returns a new User.
SaveUserDataToRedis is a generic routine to store a cache object on Redis.
SaveWebAuthnToRedis saves the user's WebAuthn data to Redis with the specified time-to-live (TTL) duration.
# Variables
nolint:gochecknoglobals // Quit-Channel for LDAP on shutdown.
nolint:gochecknoglobals // Needed for LDAP pooling.
nolint:gochecknoglobals // Quit-Channel for LDAP on shutdown.
nolint:gochecknoglobals // Needed for LDAP pooling.
LuaMainWorkerEndChan is a channel that signals the termination of the main Lua worker.
LuaRequestChan is a channel that carries LuaRequest pointers from various sources.
# Structs
Done is the value for channels to finish workers.
LDAPAuthRequest represents a request to authenticate with an LDAP server.
LDAPConnection represents the connection with an LDAP server.
LDAPPool represents a pool of LDAP connections.
LDAPReply encapsulates the result of an LDAP operation.
LDAPRequest represents an LDAP request.
LuaRequest is a subset from the Authentication struct.
PositivePasswordCache is a container that stores all kinds of user information upon a successful authentication.
User represents the user model.
# Interfaces
PoolRequest is an interface that represents a request made to a connection pool.
# Type aliases
DatabaseResult is a store for any database retrieved results.
LDAPModifyAttributes represents a type that maps attribute names to slices of string values.
PasswordHistory is a map of hashed passwords with their failure counter.