ldap

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*auth.Client
}

Client is a LDAP HTTP client that wraps the base HTTP client.

func New

func New(url string, opts ...client.ClientOpt) (*Client, error)

New creates a new LDAP HTTP client with the given base URL and options.

func (*Client) AddGroupUsers

func (c *Client) AddGroupUsers(ctx context.Context, cn string, users []string) (*schema.Object, error)

func (*Client) BindObject

func (c *Client) BindObject(ctx context.Context, dn, password string) (*schema.Object, error)

func (*Client) ChangeObjectPassword

func (c *Client) ChangeObjectPassword(ctx context.Context, dn string, req schema.ObjectPasswordRequest) (*schema.PasswordResponse, error)

func (*Client) CreateGroup

func (c *Client) CreateGroup(ctx context.Context, cn string, req *schema.ObjectPutRequest) (*schema.Object, error)

func (*Client) CreateObject

func (c *Client) CreateObject(ctx context.Context, dn string, req schema.ObjectPutRequest) (*schema.Object, error)

func (*Client) CreateUser

func (c *Client) CreateUser(ctx context.Context, cn string, req *schema.ObjectPutRequest, allocateGID bool) (*schema.Object, error)

func (*Client) DeleteGroup

func (c *Client) DeleteGroup(ctx context.Context, cn string) (*schema.Object, error)

func (*Client) DeleteObject

func (c *Client) DeleteObject(ctx context.Context, dn string) (*schema.Object, error)

func (*Client) DeleteUser

func (c *Client) DeleteUser(ctx context.Context, cn string) (*schema.Object, error)

func (*Client) GetGroup

func (c *Client) GetGroup(ctx context.Context, cn string) (*schema.Object, error)

func (*Client) GetObject

func (c *Client) GetObject(ctx context.Context, dn string) (*schema.Object, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, cn string) (*schema.Object, error)

func (*Client) ListGroups

func (c *Client) ListGroups(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)

func (*Client) ListObjectClasses

func (*Client) ListObjects

func (c *Client) ListObjects(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)

func (*Client) ListUsers

func (c *Client) ListUsers(ctx context.Context, req schema.ObjectListRequest) (*schema.ObjectList, error)

func (*Client) RemoveGroupUsers

func (c *Client) RemoveGroupUsers(ctx context.Context, cn string, users []string) (*schema.Object, error)

func (*Client) UpdateGroup

func (c *Client) UpdateGroup(ctx context.Context, cn string, req schema.ObjectPutRequest) (*schema.Object, error)

func (*Client) UpdateObject

func (c *Client) UpdateObject(ctx context.Context, dn string, req schema.ObjectPutRequest) (*schema.Object, error)

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, cn string, req schema.ObjectPutRequest) (*schema.Object, error)

Jump to

Keyboard shortcuts

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