dirldap

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package dirldap implements an LDAP agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Bind(username, password string) error
	Search(request *ldap.SearchRequest) (*ldap.SearchResult, error)
	Modify(request *ldap.ModifyRequest) error
	Close() error
}

Client defines an interface for client operations.

type LDAPClient

type LDAPClient struct {
	// contains filtered or unexported fields
}

LDAPClient defines an interface for LDAP operations.

func (*LDAPClient) Bind

func (r *LDAPClient) Bind(username, password string) error

Bind creates a connection with the provided credentials.

func (*LDAPClient) Close

func (r *LDAPClient) Close() error

Close cleans up ant client related connections

func (*LDAPClient) Modify

func (r *LDAPClient) Modify(request *ldap.ModifyRequest) error

Modify applies the ldap modify request

func (*LDAPClient) Search

func (r *LDAPClient) Search(request *ldap.SearchRequest) (*ldap.SearchResult, error)

Search runs the ldap search request and returns the result

type Provider

type Provider struct {
	Config *config.LDAPConfig
	// contains filtered or unexported fields
}

Provider represents the directory provider

func (*Provider) Close

func (p *Provider) Close() error

Close cleans up resources associated with the Provider

func (*Provider) Configure

Configure returns static information about the integration

func (*Provider) GetAccount

GetAccount fetches accounts given one of its external IDs.

Because multiple accounts could match an external ID, it is possible than multiple accounts could be returned. The caller must handle this case, which is probably an error.

func (*Provider) ListAccounts

ListAccounts returns a partial list of accounts. Callers should use Cursor to page through multiple pages of results.

func (*Provider) ListGroups

ListGroups returns the directory groups that match the given name prefix.

func (*Provider) PerformOperation

PerformOperation performs the specified recovery operation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL