authd

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package authd holds the authd protocol implementation.

Index

Constants

View Source
const (
	PAM_AvailableBrokers_FullMethodName         = "/authd.PAM/AvailableBrokers"
	PAM_GetPreviousBroker_FullMethodName        = "/authd.PAM/GetPreviousBroker"
	PAM_SelectBroker_FullMethodName             = "/authd.PAM/SelectBroker"
	PAM_GetAuthenticationModes_FullMethodName   = "/authd.PAM/GetAuthenticationModes"
	PAM_SelectAuthenticationMode_FullMethodName = "/authd.PAM/SelectAuthenticationMode"
	PAM_IsAuthenticated_FullMethodName          = "/authd.PAM/IsAuthenticated"
	PAM_EndSession_FullMethodName               = "/authd.PAM/EndSession"
	PAM_SetDefaultBrokerForUser_FullMethodName  = "/authd.PAM/SetDefaultBrokerForUser"
)
View Source
const (
	NSS_GetPasswdByName_FullMethodName  = "/authd.NSS/GetPasswdByName"
	NSS_GetPasswdByUID_FullMethodName   = "/authd.NSS/GetPasswdByUID"
	NSS_GetPasswdEntries_FullMethodName = "/authd.NSS/GetPasswdEntries"
	NSS_GetGroupByName_FullMethodName   = "/authd.NSS/GetGroupByName"
	NSS_GetGroupByGID_FullMethodName    = "/authd.NSS/GetGroupByGID"
	NSS_GetGroupEntries_FullMethodName  = "/authd.NSS/GetGroupEntries"
	NSS_GetShadowByName_FullMethodName  = "/authd.NSS/GetShadowByName"
	NSS_GetShadowEntries_FullMethodName = "/authd.NSS/GetShadowEntries"
)

Variables

View Source
var (
	SessionMode_name = map[int32]string{
		0: "UNDEFINED",
		1: "AUTH",
		2: "PASSWD",
	}
	SessionMode_value = map[string]int32{
		"UNDEFINED": 0,
		"AUTH":      1,
		"PASSWD":    2,
	}
)

Enum value maps for SessionMode.

View Source
var File_authd_proto protoreflect.FileDescriptor
View Source
var NSS_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authd.NSS",
	HandlerType: (*NSSServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPasswdByName",
			Handler:    _NSS_GetPasswdByName_Handler,
		},
		{
			MethodName: "GetPasswdByUID",
			Handler:    _NSS_GetPasswdByUID_Handler,
		},
		{
			MethodName: "GetPasswdEntries",
			Handler:    _NSS_GetPasswdEntries_Handler,
		},
		{
			MethodName: "GetGroupByName",
			Handler:    _NSS_GetGroupByName_Handler,
		},
		{
			MethodName: "GetGroupByGID",
			Handler:    _NSS_GetGroupByGID_Handler,
		},
		{
			MethodName: "GetGroupEntries",
			Handler:    _NSS_GetGroupEntries_Handler,
		},
		{
			MethodName: "GetShadowByName",
			Handler:    _NSS_GetShadowByName_Handler,
		},
		{
			MethodName: "GetShadowEntries",
			Handler:    _NSS_GetShadowEntries_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authd.proto",
}

NSS_ServiceDesc is the grpc.ServiceDesc for NSS service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var PAM_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authd.PAM",
	HandlerType: (*PAMServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AvailableBrokers",
			Handler:    _PAM_AvailableBrokers_Handler,
		},
		{
			MethodName: "GetPreviousBroker",
			Handler:    _PAM_GetPreviousBroker_Handler,
		},
		{
			MethodName: "SelectBroker",
			Handler:    _PAM_SelectBroker_Handler,
		},
		{
			MethodName: "GetAuthenticationModes",
			Handler:    _PAM_GetAuthenticationModes_Handler,
		},
		{
			MethodName: "SelectAuthenticationMode",
			Handler:    _PAM_SelectAuthenticationMode_Handler,
		},
		{
			MethodName: "IsAuthenticated",
			Handler:    _PAM_IsAuthenticated_Handler,
		},
		{
			MethodName: "EndSession",
			Handler:    _PAM_EndSession_Handler,
		},
		{
			MethodName: "SetDefaultBrokerForUser",
			Handler:    _PAM_SetDefaultBrokerForUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "authd.proto",
}

PAM_ServiceDesc is the grpc.ServiceDesc for PAM service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterNSSServer

func RegisterNSSServer(s grpc.ServiceRegistrar, srv NSSServer)

func RegisterPAMServer

func RegisterPAMServer(s grpc.ServiceRegistrar, srv PAMServer)

Types

type ABResponse

type ABResponse struct {
	BrokersInfos []*ABResponse_BrokerInfo `protobuf:"bytes,1,rep,name=brokers_infos,json=brokersInfos,proto3" json:"brokers_infos,omitempty"`
	// contains filtered or unexported fields
}

func (*ABResponse) Descriptor deprecated

func (*ABResponse) Descriptor() ([]byte, []int)

Deprecated: Use ABResponse.ProtoReflect.Descriptor instead.

func (*ABResponse) GetBrokersInfos

func (x *ABResponse) GetBrokersInfos() []*ABResponse_BrokerInfo

func (*ABResponse) ProtoMessage

func (*ABResponse) ProtoMessage()

func (*ABResponse) ProtoReflect

func (x *ABResponse) ProtoReflect() protoreflect.Message

func (*ABResponse) Reset

func (x *ABResponse) Reset()

func (*ABResponse) String

func (x *ABResponse) String() string

type ABResponse_BrokerInfo

type ABResponse_BrokerInfo struct {
	Id        string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	BrandIcon *string `protobuf:"bytes,3,opt,name=brand_icon,json=brandIcon,proto3,oneof" json:"brand_icon,omitempty"`
	// contains filtered or unexported fields
}

func (*ABResponse_BrokerInfo) Descriptor deprecated

func (*ABResponse_BrokerInfo) Descriptor() ([]byte, []int)

Deprecated: Use ABResponse_BrokerInfo.ProtoReflect.Descriptor instead.

func (*ABResponse_BrokerInfo) GetBrandIcon

func (x *ABResponse_BrokerInfo) GetBrandIcon() string

func (*ABResponse_BrokerInfo) GetId

func (x *ABResponse_BrokerInfo) GetId() string

func (*ABResponse_BrokerInfo) GetName

func (x *ABResponse_BrokerInfo) GetName() string

func (*ABResponse_BrokerInfo) ProtoMessage

func (*ABResponse_BrokerInfo) ProtoMessage()

func (*ABResponse_BrokerInfo) ProtoReflect

func (x *ABResponse_BrokerInfo) ProtoReflect() protoreflect.Message

func (*ABResponse_BrokerInfo) Reset

func (x *ABResponse_BrokerInfo) Reset()

func (*ABResponse_BrokerInfo) String

func (x *ABResponse_BrokerInfo) String() string

type ESRequest

type ESRequest struct {
	SessionId string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ESRequest) Descriptor deprecated

func (*ESRequest) Descriptor() ([]byte, []int)

Deprecated: Use ESRequest.ProtoReflect.Descriptor instead.

func (*ESRequest) GetSessionId

func (x *ESRequest) GetSessionId() string

func (*ESRequest) ProtoMessage

func (*ESRequest) ProtoMessage()

func (*ESRequest) ProtoReflect

func (x *ESRequest) ProtoReflect() protoreflect.Message

func (*ESRequest) Reset

func (x *ESRequest) Reset()

func (*ESRequest) String

func (x *ESRequest) String() string

type Empty

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

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GAMRequest

type GAMRequest struct {
	SessionId          string      `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	SupportedUiLayouts []*UILayout `protobuf:"bytes,2,rep,name=supported_ui_layouts,json=supportedUiLayouts,proto3" json:"supported_ui_layouts,omitempty"`
	// contains filtered or unexported fields
}

func (*GAMRequest) Descriptor deprecated

func (*GAMRequest) Descriptor() ([]byte, []int)

Deprecated: Use GAMRequest.ProtoReflect.Descriptor instead.

func (*GAMRequest) GetSessionId

func (x *GAMRequest) GetSessionId() string

func (*GAMRequest) GetSupportedUiLayouts

func (x *GAMRequest) GetSupportedUiLayouts() []*UILayout

func (*GAMRequest) ProtoMessage

func (*GAMRequest) ProtoMessage()

func (*GAMRequest) ProtoReflect

func (x *GAMRequest) ProtoReflect() protoreflect.Message

func (*GAMRequest) Reset

func (x *GAMRequest) Reset()

func (*GAMRequest) String

func (x *GAMRequest) String() string

type GAMResponse

type GAMResponse struct {
	AuthenticationModes []*GAMResponse_AuthenticationMode `protobuf:"bytes,1,rep,name=authentication_modes,json=authenticationModes,proto3" json:"authentication_modes,omitempty"`
	// contains filtered or unexported fields
}

func (*GAMResponse) Descriptor deprecated

func (*GAMResponse) Descriptor() ([]byte, []int)

Deprecated: Use GAMResponse.ProtoReflect.Descriptor instead.

func (*GAMResponse) GetAuthenticationModes

func (x *GAMResponse) GetAuthenticationModes() []*GAMResponse_AuthenticationMode

func (*GAMResponse) ProtoMessage

func (*GAMResponse) ProtoMessage()

func (*GAMResponse) ProtoReflect

func (x *GAMResponse) ProtoReflect() protoreflect.Message

func (*GAMResponse) Reset

func (x *GAMResponse) Reset()

func (*GAMResponse) String

func (x *GAMResponse) String() string

type GAMResponse_AuthenticationMode

type GAMResponse_AuthenticationMode struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*GAMResponse_AuthenticationMode) Descriptor deprecated

func (*GAMResponse_AuthenticationMode) Descriptor() ([]byte, []int)

Deprecated: Use GAMResponse_AuthenticationMode.ProtoReflect.Descriptor instead.

func (*GAMResponse_AuthenticationMode) GetId

func (*GAMResponse_AuthenticationMode) GetLabel

func (x *GAMResponse_AuthenticationMode) GetLabel() string

func (*GAMResponse_AuthenticationMode) ProtoMessage

func (*GAMResponse_AuthenticationMode) ProtoMessage()

func (*GAMResponse_AuthenticationMode) ProtoReflect

func (*GAMResponse_AuthenticationMode) Reset

func (x *GAMResponse_AuthenticationMode) Reset()

func (*GAMResponse_AuthenticationMode) String

type GPBRequest

type GPBRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*GPBRequest) Descriptor deprecated

func (*GPBRequest) Descriptor() ([]byte, []int)

Deprecated: Use GPBRequest.ProtoReflect.Descriptor instead.

func (*GPBRequest) GetUsername

func (x *GPBRequest) GetUsername() string

func (*GPBRequest) ProtoMessage

func (*GPBRequest) ProtoMessage()

func (*GPBRequest) ProtoReflect

func (x *GPBRequest) ProtoReflect() protoreflect.Message

func (*GPBRequest) Reset

func (x *GPBRequest) Reset()

func (*GPBRequest) String

func (x *GPBRequest) String() string

type GPBResponse

type GPBResponse struct {
	PreviousBroker string `protobuf:"bytes,1,opt,name=previous_broker,json=previousBroker,proto3" json:"previous_broker,omitempty"`
	// contains filtered or unexported fields
}

func (*GPBResponse) Descriptor deprecated

func (*GPBResponse) Descriptor() ([]byte, []int)

Deprecated: Use GPBResponse.ProtoReflect.Descriptor instead.

func (*GPBResponse) GetPreviousBroker

func (x *GPBResponse) GetPreviousBroker() string

func (*GPBResponse) ProtoMessage

func (*GPBResponse) ProtoMessage()

func (*GPBResponse) ProtoReflect

func (x *GPBResponse) ProtoReflect() protoreflect.Message

func (*GPBResponse) Reset

func (x *GPBResponse) Reset()

func (*GPBResponse) String

func (x *GPBResponse) String() string

type GetByIDRequest

type GetByIDRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetByIDRequest) Descriptor deprecated

func (*GetByIDRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetByIDRequest.ProtoReflect.Descriptor instead.

func (*GetByIDRequest) GetId

func (x *GetByIDRequest) GetId() uint32

func (*GetByIDRequest) ProtoMessage

func (*GetByIDRequest) ProtoMessage()

func (*GetByIDRequest) ProtoReflect

func (x *GetByIDRequest) ProtoReflect() protoreflect.Message

func (*GetByIDRequest) Reset

func (x *GetByIDRequest) Reset()

func (*GetByIDRequest) String

func (x *GetByIDRequest) String() string

type GetGroupByNameRequest

type GetGroupByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGroupByNameRequest) Descriptor deprecated

func (*GetGroupByNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetGroupByNameRequest.ProtoReflect.Descriptor instead.

func (*GetGroupByNameRequest) GetName

func (x *GetGroupByNameRequest) GetName() string

func (*GetGroupByNameRequest) ProtoMessage

func (*GetGroupByNameRequest) ProtoMessage()

func (*GetGroupByNameRequest) ProtoReflect

func (x *GetGroupByNameRequest) ProtoReflect() protoreflect.Message

func (*GetGroupByNameRequest) Reset

func (x *GetGroupByNameRequest) Reset()

func (*GetGroupByNameRequest) String

func (x *GetGroupByNameRequest) String() string

type GetPasswdByNameRequest

type GetPasswdByNameRequest struct {
	Name           string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ShouldPreCheck bool   `protobuf:"varint,2,opt,name=shouldPreCheck,proto3" json:"shouldPreCheck,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPasswdByNameRequest) Descriptor deprecated

func (*GetPasswdByNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetPasswdByNameRequest.ProtoReflect.Descriptor instead.

func (*GetPasswdByNameRequest) GetName

func (x *GetPasswdByNameRequest) GetName() string

func (*GetPasswdByNameRequest) GetShouldPreCheck

func (x *GetPasswdByNameRequest) GetShouldPreCheck() bool

func (*GetPasswdByNameRequest) ProtoMessage

func (*GetPasswdByNameRequest) ProtoMessage()

func (*GetPasswdByNameRequest) ProtoReflect

func (x *GetPasswdByNameRequest) ProtoReflect() protoreflect.Message

func (*GetPasswdByNameRequest) Reset

func (x *GetPasswdByNameRequest) Reset()

func (*GetPasswdByNameRequest) String

func (x *GetPasswdByNameRequest) String() string

type GetShadowByNameRequest

type GetShadowByNameRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*GetShadowByNameRequest) Descriptor deprecated

func (*GetShadowByNameRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetShadowByNameRequest.ProtoReflect.Descriptor instead.

func (*GetShadowByNameRequest) GetName

func (x *GetShadowByNameRequest) GetName() string

func (*GetShadowByNameRequest) ProtoMessage

func (*GetShadowByNameRequest) ProtoMessage()

func (*GetShadowByNameRequest) ProtoReflect

func (x *GetShadowByNameRequest) ProtoReflect() protoreflect.Message

func (*GetShadowByNameRequest) Reset

func (x *GetShadowByNameRequest) Reset()

func (*GetShadowByNameRequest) String

func (x *GetShadowByNameRequest) String() string

type GroupEntries

type GroupEntries struct {
	Entries []*GroupEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupEntries) Descriptor deprecated

func (*GroupEntries) Descriptor() ([]byte, []int)

Deprecated: Use GroupEntries.ProtoReflect.Descriptor instead.

func (*GroupEntries) GetEntries

func (x *GroupEntries) GetEntries() []*GroupEntry

func (*GroupEntries) ProtoMessage

func (*GroupEntries) ProtoMessage()

func (*GroupEntries) ProtoReflect

func (x *GroupEntries) ProtoReflect() protoreflect.Message

func (*GroupEntries) Reset

func (x *GroupEntries) Reset()

func (*GroupEntries) String

func (x *GroupEntries) String() string

type GroupEntry

type GroupEntry struct {
	Name    string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Passwd  string   `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
	Gid     uint32   `protobuf:"varint,3,opt,name=gid,proto3" json:"gid,omitempty"`
	Members []string `protobuf:"bytes,4,rep,name=members,proto3" json:"members,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupEntry) Descriptor deprecated

func (*GroupEntry) Descriptor() ([]byte, []int)

Deprecated: Use GroupEntry.ProtoReflect.Descriptor instead.

func (*GroupEntry) GetGid

func (x *GroupEntry) GetGid() uint32

func (*GroupEntry) GetMembers

func (x *GroupEntry) GetMembers() []string

func (*GroupEntry) GetName

func (x *GroupEntry) GetName() string

func (*GroupEntry) GetPasswd

func (x *GroupEntry) GetPasswd() string

func (*GroupEntry) ProtoMessage

func (*GroupEntry) ProtoMessage()

func (*GroupEntry) ProtoReflect

func (x *GroupEntry) ProtoReflect() protoreflect.Message

func (*GroupEntry) Reset

func (x *GroupEntry) Reset()

func (*GroupEntry) String

func (x *GroupEntry) String() string

type IARequest

type IARequest struct {
	SessionId          string                        `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	AuthenticationData *IARequest_AuthenticationData `protobuf:"bytes,2,opt,name=authentication_data,json=authenticationData,proto3" json:"authentication_data,omitempty"`
	// contains filtered or unexported fields
}

func (*IARequest) Descriptor deprecated

func (*IARequest) Descriptor() ([]byte, []int)

Deprecated: Use IARequest.ProtoReflect.Descriptor instead.

func (*IARequest) GetAuthenticationData

func (x *IARequest) GetAuthenticationData() *IARequest_AuthenticationData

func (*IARequest) GetSessionId

func (x *IARequest) GetSessionId() string

func (*IARequest) ProtoMessage

func (*IARequest) ProtoMessage()

func (*IARequest) ProtoReflect

func (x *IARequest) ProtoReflect() protoreflect.Message

func (*IARequest) Reset

func (x *IARequest) Reset()

func (*IARequest) String

func (x *IARequest) String() string

type IARequestAuthenticationDataItem

type IARequestAuthenticationDataItem = isIARequest_AuthenticationData_Item

IARequestAuthenticationDataItem is an interface for the valid authentication data values.

type IARequest_AuthenticationData

type IARequest_AuthenticationData struct {

	// Types that are assignable to Item:
	//
	//	*IARequest_AuthenticationData_Challenge
	//	*IARequest_AuthenticationData_Wait
	//	*IARequest_AuthenticationData_Skip
	Item isIARequest_AuthenticationData_Item `protobuf_oneof:"item"`
	// contains filtered or unexported fields
}

func (*IARequest_AuthenticationData) Descriptor deprecated

func (*IARequest_AuthenticationData) Descriptor() ([]byte, []int)

Deprecated: Use IARequest_AuthenticationData.ProtoReflect.Descriptor instead.

func (*IARequest_AuthenticationData) GetChallenge

func (x *IARequest_AuthenticationData) GetChallenge() string

func (*IARequest_AuthenticationData) GetItem

func (m *IARequest_AuthenticationData) GetItem() isIARequest_AuthenticationData_Item

func (*IARequest_AuthenticationData) GetSkip

func (x *IARequest_AuthenticationData) GetSkip() string

func (*IARequest_AuthenticationData) GetWait

func (x *IARequest_AuthenticationData) GetWait() string

func (*IARequest_AuthenticationData) ProtoMessage

func (*IARequest_AuthenticationData) ProtoMessage()

func (*IARequest_AuthenticationData) ProtoReflect

func (*IARequest_AuthenticationData) Reset

func (x *IARequest_AuthenticationData) Reset()

func (*IARequest_AuthenticationData) String

type IARequest_AuthenticationData_Challenge

type IARequest_AuthenticationData_Challenge struct {
	Challenge string `protobuf:"bytes,1,opt,name=challenge,proto3,oneof"`
}

type IARequest_AuthenticationData_Skip

type IARequest_AuthenticationData_Skip struct {
	Skip string `protobuf:"bytes,3,opt,name=skip,proto3,oneof"`
}

type IARequest_AuthenticationData_Wait

type IARequest_AuthenticationData_Wait struct {
	Wait string `protobuf:"bytes,2,opt,name=wait,proto3,oneof"`
}

type IAResponse

type IAResponse struct {
	Access string `protobuf:"bytes,1,opt,name=access,proto3" json:"access,omitempty"`
	Msg    string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*IAResponse) Descriptor deprecated

func (*IAResponse) Descriptor() ([]byte, []int)

Deprecated: Use IAResponse.ProtoReflect.Descriptor instead.

func (*IAResponse) GetAccess

func (x *IAResponse) GetAccess() string

func (*IAResponse) GetMsg

func (x *IAResponse) GetMsg() string

func (*IAResponse) ProtoMessage

func (*IAResponse) ProtoMessage()

func (*IAResponse) ProtoReflect

func (x *IAResponse) ProtoReflect() protoreflect.Message

func (*IAResponse) Reset

func (x *IAResponse) Reset()

func (*IAResponse) String

func (x *IAResponse) String() string

type NSSClient

type NSSClient interface {
	GetPasswdByName(ctx context.Context, in *GetPasswdByNameRequest, opts ...grpc.CallOption) (*PasswdEntry, error)
	GetPasswdByUID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*PasswdEntry, error)
	GetPasswdEntries(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PasswdEntries, error)
	GetGroupByName(ctx context.Context, in *GetGroupByNameRequest, opts ...grpc.CallOption) (*GroupEntry, error)
	GetGroupByGID(ctx context.Context, in *GetByIDRequest, opts ...grpc.CallOption) (*GroupEntry, error)
	GetGroupEntries(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GroupEntries, error)
	GetShadowByName(ctx context.Context, in *GetShadowByNameRequest, opts ...grpc.CallOption) (*ShadowEntry, error)
	GetShadowEntries(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ShadowEntries, error)
}

NSSClient is the client API for NSS service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewNSSClient

func NewNSSClient(cc grpc.ClientConnInterface) NSSClient

type NSSServer

type NSSServer interface {
	GetPasswdByName(context.Context, *GetPasswdByNameRequest) (*PasswdEntry, error)
	GetPasswdByUID(context.Context, *GetByIDRequest) (*PasswdEntry, error)
	GetPasswdEntries(context.Context, *Empty) (*PasswdEntries, error)
	GetGroupByName(context.Context, *GetGroupByNameRequest) (*GroupEntry, error)
	GetGroupByGID(context.Context, *GetByIDRequest) (*GroupEntry, error)
	GetGroupEntries(context.Context, *Empty) (*GroupEntries, error)
	GetShadowByName(context.Context, *GetShadowByNameRequest) (*ShadowEntry, error)
	GetShadowEntries(context.Context, *Empty) (*ShadowEntries, error)
	// contains filtered or unexported methods
}

NSSServer is the server API for NSS service. All implementations must embed UnimplementedNSSServer for forward compatibility.

type PAMClient

type PAMClient interface {
	AvailableBrokers(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ABResponse, error)
	GetPreviousBroker(ctx context.Context, in *GPBRequest, opts ...grpc.CallOption) (*GPBResponse, error)
	SelectBroker(ctx context.Context, in *SBRequest, opts ...grpc.CallOption) (*SBResponse, error)
	GetAuthenticationModes(ctx context.Context, in *GAMRequest, opts ...grpc.CallOption) (*GAMResponse, error)
	SelectAuthenticationMode(ctx context.Context, in *SAMRequest, opts ...grpc.CallOption) (*SAMResponse, error)
	IsAuthenticated(ctx context.Context, in *IARequest, opts ...grpc.CallOption) (*IAResponse, error)
	EndSession(ctx context.Context, in *ESRequest, opts ...grpc.CallOption) (*Empty, error)
	SetDefaultBrokerForUser(ctx context.Context, in *SDBFURequest, opts ...grpc.CallOption) (*Empty, error)
}

PAMClient is the client API for PAM service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPAMClient

func NewPAMClient(cc grpc.ClientConnInterface) PAMClient

type PAMServer

type PAMServer interface {
	AvailableBrokers(context.Context, *Empty) (*ABResponse, error)
	GetPreviousBroker(context.Context, *GPBRequest) (*GPBResponse, error)
	SelectBroker(context.Context, *SBRequest) (*SBResponse, error)
	GetAuthenticationModes(context.Context, *GAMRequest) (*GAMResponse, error)
	SelectAuthenticationMode(context.Context, *SAMRequest) (*SAMResponse, error)
	IsAuthenticated(context.Context, *IARequest) (*IAResponse, error)
	EndSession(context.Context, *ESRequest) (*Empty, error)
	SetDefaultBrokerForUser(context.Context, *SDBFURequest) (*Empty, error)
	// contains filtered or unexported methods
}

PAMServer is the server API for PAM service. All implementations must embed UnimplementedPAMServer for forward compatibility.

type PasswdEntries

type PasswdEntries struct {
	Entries []*PasswdEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*PasswdEntries) Descriptor deprecated

func (*PasswdEntries) Descriptor() ([]byte, []int)

Deprecated: Use PasswdEntries.ProtoReflect.Descriptor instead.

func (*PasswdEntries) GetEntries

func (x *PasswdEntries) GetEntries() []*PasswdEntry

func (*PasswdEntries) ProtoMessage

func (*PasswdEntries) ProtoMessage()

func (*PasswdEntries) ProtoReflect

func (x *PasswdEntries) ProtoReflect() protoreflect.Message

func (*PasswdEntries) Reset

func (x *PasswdEntries) Reset()

func (*PasswdEntries) String

func (x *PasswdEntries) String() string

type PasswdEntry

type PasswdEntry struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Passwd  string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
	Uid     uint32 `protobuf:"varint,3,opt,name=uid,proto3" json:"uid,omitempty"`
	Gid     uint32 `protobuf:"varint,4,opt,name=gid,proto3" json:"gid,omitempty"`
	Gecos   string `protobuf:"bytes,5,opt,name=gecos,proto3" json:"gecos,omitempty"`
	Homedir string `protobuf:"bytes,6,opt,name=homedir,proto3" json:"homedir,omitempty"`
	Shell   string `protobuf:"bytes,7,opt,name=shell,proto3" json:"shell,omitempty"`
	// contains filtered or unexported fields
}

func (*PasswdEntry) Descriptor deprecated

func (*PasswdEntry) Descriptor() ([]byte, []int)

Deprecated: Use PasswdEntry.ProtoReflect.Descriptor instead.

func (*PasswdEntry) GetGecos

func (x *PasswdEntry) GetGecos() string

func (*PasswdEntry) GetGid

func (x *PasswdEntry) GetGid() uint32

func (*PasswdEntry) GetHomedir

func (x *PasswdEntry) GetHomedir() string

func (*PasswdEntry) GetName

func (x *PasswdEntry) GetName() string

func (*PasswdEntry) GetPasswd

func (x *PasswdEntry) GetPasswd() string

func (*PasswdEntry) GetShell

func (x *PasswdEntry) GetShell() string

func (*PasswdEntry) GetUid

func (x *PasswdEntry) GetUid() uint32

func (*PasswdEntry) ProtoMessage

func (*PasswdEntry) ProtoMessage()

func (*PasswdEntry) ProtoReflect

func (x *PasswdEntry) ProtoReflect() protoreflect.Message

func (*PasswdEntry) Reset

func (x *PasswdEntry) Reset()

func (*PasswdEntry) String

func (x *PasswdEntry) String() string

type SAMRequest

type SAMRequest struct {
	SessionId            string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	AuthenticationModeId string `protobuf:"bytes,2,opt,name=authentication_mode_id,json=authenticationModeId,proto3" json:"authentication_mode_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SAMRequest) Descriptor deprecated

func (*SAMRequest) Descriptor() ([]byte, []int)

Deprecated: Use SAMRequest.ProtoReflect.Descriptor instead.

func (*SAMRequest) GetAuthenticationModeId

func (x *SAMRequest) GetAuthenticationModeId() string

func (*SAMRequest) GetSessionId

func (x *SAMRequest) GetSessionId() string

func (*SAMRequest) ProtoMessage

func (*SAMRequest) ProtoMessage()

func (*SAMRequest) ProtoReflect

func (x *SAMRequest) ProtoReflect() protoreflect.Message

func (*SAMRequest) Reset

func (x *SAMRequest) Reset()

func (*SAMRequest) String

func (x *SAMRequest) String() string

type SAMResponse

type SAMResponse struct {
	UiLayoutInfo *UILayout `protobuf:"bytes,1,opt,name=ui_layout_info,json=uiLayoutInfo,proto3" json:"ui_layout_info,omitempty"`
	// contains filtered or unexported fields
}

func (*SAMResponse) Descriptor deprecated

func (*SAMResponse) Descriptor() ([]byte, []int)

Deprecated: Use SAMResponse.ProtoReflect.Descriptor instead.

func (*SAMResponse) GetUiLayoutInfo

func (x *SAMResponse) GetUiLayoutInfo() *UILayout

func (*SAMResponse) ProtoMessage

func (*SAMResponse) ProtoMessage()

func (*SAMResponse) ProtoReflect

func (x *SAMResponse) ProtoReflect() protoreflect.Message

func (*SAMResponse) Reset

func (x *SAMResponse) Reset()

func (*SAMResponse) String

func (x *SAMResponse) String() string

type SBRequest

type SBRequest struct {
	BrokerId string      `protobuf:"bytes,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
	Username string      `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Lang     string      `protobuf:"bytes,3,opt,name=lang,proto3" json:"lang,omitempty"`
	Mode     SessionMode `protobuf:"varint,4,opt,name=mode,proto3,enum=authd.SessionMode" json:"mode,omitempty"`
	// contains filtered or unexported fields
}

func (*SBRequest) Descriptor deprecated

func (*SBRequest) Descriptor() ([]byte, []int)

Deprecated: Use SBRequest.ProtoReflect.Descriptor instead.

func (*SBRequest) GetBrokerId

func (x *SBRequest) GetBrokerId() string

func (*SBRequest) GetLang

func (x *SBRequest) GetLang() string

func (*SBRequest) GetMode

func (x *SBRequest) GetMode() SessionMode

func (*SBRequest) GetUsername

func (x *SBRequest) GetUsername() string

func (*SBRequest) ProtoMessage

func (*SBRequest) ProtoMessage()

func (*SBRequest) ProtoReflect

func (x *SBRequest) ProtoReflect() protoreflect.Message

func (*SBRequest) Reset

func (x *SBRequest) Reset()

func (*SBRequest) String

func (x *SBRequest) String() string

type SBResponse

type SBResponse struct {
	SessionId     string `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	EncryptionKey string `protobuf:"bytes,2,opt,name=encryption_key,json=encryptionKey,proto3" json:"encryption_key,omitempty"`
	// contains filtered or unexported fields
}

func (*SBResponse) Descriptor deprecated

func (*SBResponse) Descriptor() ([]byte, []int)

Deprecated: Use SBResponse.ProtoReflect.Descriptor instead.

func (*SBResponse) GetEncryptionKey

func (x *SBResponse) GetEncryptionKey() string

func (*SBResponse) GetSessionId

func (x *SBResponse) GetSessionId() string

func (*SBResponse) ProtoMessage

func (*SBResponse) ProtoMessage()

func (*SBResponse) ProtoReflect

func (x *SBResponse) ProtoReflect() protoreflect.Message

func (*SBResponse) Reset

func (x *SBResponse) Reset()

func (*SBResponse) String

func (x *SBResponse) String() string

type SDBFURequest

type SDBFURequest struct {
	BrokerId string `protobuf:"bytes,1,opt,name=broker_id,json=brokerId,proto3" json:"broker_id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (*SDBFURequest) Descriptor deprecated

func (*SDBFURequest) Descriptor() ([]byte, []int)

Deprecated: Use SDBFURequest.ProtoReflect.Descriptor instead.

func (*SDBFURequest) GetBrokerId

func (x *SDBFURequest) GetBrokerId() string

func (*SDBFURequest) GetUsername

func (x *SDBFURequest) GetUsername() string

func (*SDBFURequest) ProtoMessage

func (*SDBFURequest) ProtoMessage()

func (*SDBFURequest) ProtoReflect

func (x *SDBFURequest) ProtoReflect() protoreflect.Message

func (*SDBFURequest) Reset

func (x *SDBFURequest) Reset()

func (*SDBFURequest) String

func (x *SDBFURequest) String() string

type SessionMode

type SessionMode int32
const (
	SessionMode_UNDEFINED SessionMode = 0
	SessionMode_AUTH      SessionMode = 1
	SessionMode_PASSWD    SessionMode = 2
)

func (SessionMode) Descriptor

func (SessionMode) Enum

func (x SessionMode) Enum() *SessionMode

func (SessionMode) EnumDescriptor deprecated

func (SessionMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SessionMode.Descriptor instead.

func (SessionMode) Number

func (x SessionMode) Number() protoreflect.EnumNumber

func (SessionMode) String

func (x SessionMode) String() string

func (SessionMode) Type

type ShadowEntries

type ShadowEntries struct {
	Entries []*ShadowEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*ShadowEntries) Descriptor deprecated

func (*ShadowEntries) Descriptor() ([]byte, []int)

Deprecated: Use ShadowEntries.ProtoReflect.Descriptor instead.

func (*ShadowEntries) GetEntries

func (x *ShadowEntries) GetEntries() []*ShadowEntry

func (*ShadowEntries) ProtoMessage

func (*ShadowEntries) ProtoMessage()

func (*ShadowEntries) ProtoReflect

func (x *ShadowEntries) ProtoReflect() protoreflect.Message

func (*ShadowEntries) Reset

func (x *ShadowEntries) Reset()

func (*ShadowEntries) String

func (x *ShadowEntries) String() string

type ShadowEntry

type ShadowEntry struct {
	Name               string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Passwd             string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
	LastChange         int32  `protobuf:"varint,3,opt,name=last_change,json=lastChange,proto3" json:"last_change,omitempty"`
	ChangeMinDays      int32  `protobuf:"varint,4,opt,name=change_min_days,json=changeMinDays,proto3" json:"change_min_days,omitempty"`
	ChangeMaxDays      int32  `protobuf:"varint,5,opt,name=change_max_days,json=changeMaxDays,proto3" json:"change_max_days,omitempty"`
	ChangeWarnDays     int32  `protobuf:"varint,6,opt,name=change_warn_days,json=changeWarnDays,proto3" json:"change_warn_days,omitempty"`
	ChangeInactiveDays int32  `protobuf:"varint,7,opt,name=change_inactive_days,json=changeInactiveDays,proto3" json:"change_inactive_days,omitempty"`
	ExpireDate         int32  `protobuf:"varint,8,opt,name=expire_date,json=expireDate,proto3" json:"expire_date,omitempty"`
	// contains filtered or unexported fields
}

func (*ShadowEntry) Descriptor deprecated

func (*ShadowEntry) Descriptor() ([]byte, []int)

Deprecated: Use ShadowEntry.ProtoReflect.Descriptor instead.

func (*ShadowEntry) GetChangeInactiveDays

func (x *ShadowEntry) GetChangeInactiveDays() int32

func (*ShadowEntry) GetChangeMaxDays

func (x *ShadowEntry) GetChangeMaxDays() int32

func (*ShadowEntry) GetChangeMinDays

func (x *ShadowEntry) GetChangeMinDays() int32

func (*ShadowEntry) GetChangeWarnDays

func (x *ShadowEntry) GetChangeWarnDays() int32

func (*ShadowEntry) GetExpireDate

func (x *ShadowEntry) GetExpireDate() int32

func (*ShadowEntry) GetLastChange

func (x *ShadowEntry) GetLastChange() int32

func (*ShadowEntry) GetName

func (x *ShadowEntry) GetName() string

func (*ShadowEntry) GetPasswd

func (x *ShadowEntry) GetPasswd() string

func (*ShadowEntry) ProtoMessage

func (*ShadowEntry) ProtoMessage()

func (*ShadowEntry) ProtoReflect

func (x *ShadowEntry) ProtoReflect() protoreflect.Message

func (*ShadowEntry) Reset

func (x *ShadowEntry) Reset()

func (*ShadowEntry) String

func (x *ShadowEntry) String() string

type StringResponse

type StringResponse struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*StringResponse) Descriptor deprecated

func (*StringResponse) Descriptor() ([]byte, []int)

Deprecated: Use StringResponse.ProtoReflect.Descriptor instead.

func (*StringResponse) GetMsg

func (x *StringResponse) GetMsg() string

func (*StringResponse) ProtoMessage

func (*StringResponse) ProtoMessage()

func (*StringResponse) ProtoReflect

func (x *StringResponse) ProtoReflect() protoreflect.Message

func (*StringResponse) Reset

func (x *StringResponse) Reset()

func (*StringResponse) String

func (x *StringResponse) String() string

type UILayout

type UILayout struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// common components.
	Label  *string `protobuf:"bytes,2,opt,name=label,proto3,oneof" json:"label,omitempty"`
	Button *string `protobuf:"bytes,3,opt,name=button,proto3,oneof" json:"button,omitempty"`
	Wait   *string `protobuf:"bytes,4,opt,name=wait,proto3,oneof" json:"wait,omitempty"`
	// form only.
	Entry *string `protobuf:"bytes,5,opt,name=entry,proto3,oneof" json:"entry,omitempty"`
	// qr code only.
	Content       *string `protobuf:"bytes,6,opt,name=content,proto3,oneof" json:"content,omitempty"`
	Code          *string `protobuf:"bytes,7,opt,name=code,proto3,oneof" json:"code,omitempty"`
	RendersQrcode *bool   `protobuf:"varint,8,opt,name=renders_qrcode,json=rendersQrcode,proto3,oneof" json:"renders_qrcode,omitempty"`
	// contains filtered or unexported fields
}

func (*UILayout) Descriptor deprecated

func (*UILayout) Descriptor() ([]byte, []int)

Deprecated: Use UILayout.ProtoReflect.Descriptor instead.

func (*UILayout) GetButton

func (x *UILayout) GetButton() string

func (*UILayout) GetCode

func (x *UILayout) GetCode() string

func (*UILayout) GetContent

func (x *UILayout) GetContent() string

func (*UILayout) GetEntry

func (x *UILayout) GetEntry() string

func (*UILayout) GetLabel

func (x *UILayout) GetLabel() string

func (*UILayout) GetRendersQrcode

func (x *UILayout) GetRendersQrcode() bool

func (*UILayout) GetType

func (x *UILayout) GetType() string

func (*UILayout) GetWait

func (x *UILayout) GetWait() string

func (*UILayout) ProtoMessage

func (*UILayout) ProtoMessage()

func (*UILayout) ProtoReflect

func (x *UILayout) ProtoReflect() protoreflect.Message

func (*UILayout) Reset

func (x *UILayout) Reset()

func (*UILayout) String

func (x *UILayout) String() string

type UnimplementedNSSServer

type UnimplementedNSSServer struct{}

UnimplementedNSSServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNSSServer) GetGroupByGID

func (UnimplementedNSSServer) GetGroupByName

func (UnimplementedNSSServer) GetGroupEntries

func (UnimplementedNSSServer) GetPasswdByName

func (UnimplementedNSSServer) GetPasswdByUID

func (UnimplementedNSSServer) GetPasswdEntries

func (UnimplementedNSSServer) GetShadowByName

func (UnimplementedNSSServer) GetShadowEntries

type UnimplementedPAMServer

type UnimplementedPAMServer struct{}

UnimplementedPAMServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPAMServer) AvailableBrokers

func (UnimplementedPAMServer) AvailableBrokers(context.Context, *Empty) (*ABResponse, error)

func (UnimplementedPAMServer) EndSession

func (UnimplementedPAMServer) GetAuthenticationModes

func (UnimplementedPAMServer) GetAuthenticationModes(context.Context, *GAMRequest) (*GAMResponse, error)

func (UnimplementedPAMServer) GetPreviousBroker

func (UnimplementedPAMServer) IsAuthenticated

func (UnimplementedPAMServer) SelectAuthenticationMode

func (UnimplementedPAMServer) SelectAuthenticationMode(context.Context, *SAMRequest) (*SAMResponse, error)

func (UnimplementedPAMServer) SelectBroker

func (UnimplementedPAMServer) SetDefaultBrokerForUser

func (UnimplementedPAMServer) SetDefaultBrokerForUser(context.Context, *SDBFURequest) (*Empty, error)

type UnsafeNSSServer

type UnsafeNSSServer interface {
	// contains filtered or unexported methods
}

UnsafeNSSServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NSSServer will result in compilation errors.

type UnsafePAMServer

type UnsafePAMServer interface {
	// contains filtered or unexported methods
}

UnsafePAMServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PAMServer will result in compilation errors.

Jump to

Keyboard shortcuts

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