nss

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package nss implements the nss grpc service protocol to the daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	authd.UnimplementedNSSServer
	// contains filtered or unexported fields
}

Service is the implementation of the NSS module service.

func NewService

func NewService(ctx context.Context, userManager *users.Manager, brokerManager *brokers.Manager, permissionManager *permissions.Manager) Service

NewService returns a new NSS GRPC service.

func (Service) CheckGlobalAccess

func (s Service) CheckGlobalAccess(ctx context.Context, method string) error

CheckGlobalAccess always return access, then individual calls are filtered.

func (Service) GetGroupByGID

func (s Service) GetGroupByGID(ctx context.Context, req *authd.GetByIDRequest) (*authd.GroupEntry, error)

GetGroupByGID returns the group entry for the given GID.

func (Service) GetGroupByName

func (s Service) GetGroupByName(ctx context.Context, req *authd.GetGroupByNameRequest) (*authd.GroupEntry, error)

GetGroupByName returns the group entry for the given group name.

func (Service) GetGroupEntries

func (s Service) GetGroupEntries(ctx context.Context, req *authd.Empty) (*authd.GroupEntries, error)

GetGroupEntries returns all group entries.

func (Service) GetPasswdByName

func (s Service) GetPasswdByName(ctx context.Context, req *authd.GetPasswdByNameRequest) (*authd.PasswdEntry, error)

GetPasswdByName returns the passwd entry for the given username.

func (Service) GetPasswdByUID

func (s Service) GetPasswdByUID(ctx context.Context, req *authd.GetByIDRequest) (*authd.PasswdEntry, error)

GetPasswdByUID returns the passwd entry for the given UID.

func (Service) GetPasswdEntries

func (s Service) GetPasswdEntries(ctx context.Context, req *authd.Empty) (*authd.PasswdEntries, error)

GetPasswdEntries returns all passwd entries.

func (Service) GetShadowByName

func (s Service) GetShadowByName(ctx context.Context, req *authd.GetShadowByNameRequest) (*authd.ShadowEntry, error)

GetShadowByName returns the shadow entry for the given username.

func (Service) GetShadowEntries

func (s Service) GetShadowEntries(ctx context.Context, req *authd.Empty) (*authd.ShadowEntries, error)

GetShadowEntries returns all shadow entries.

Jump to

Keyboard shortcuts

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