ldap

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestConnection

func TestConnection(domain string) (*ldap.Conn, error)

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, serverAddr string, baseDN string, password string, userDN string) (*Client, error)

func (*Client) CreateMemberEntry

func (c *Client) CreateMemberEntry(ctx context.Context, memberId string) (string, error)

func (*Client) LdapModify

func (c *Client) LdapModify(ctx context.Context, modifyRequest *ldap.ModifyRequest) error

func (*Client) LdapSearch

func (c *Client) LdapSearch(ctx context.Context, filter string, attrNames []string, pageToken string, pageSize uint32, baseDNOverride string) ([]*ldap.Entry, string, error)

type Entry

type Entry = ldap.Entry

Jump to

Keyboard shortcuts

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