kerberos

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package kerberos interacts with the Kerberos system daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kerberos

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

Kerberos is used to interact with the Kerberos daemon process over D-Bus. For documentation of the D-Bus methods, see src/platform2/kerberos/dbus_bindings/org.chromium.Kerberos.xml.

func New

func New(ctx context.Context) (*Kerberos, error)

New connects to the Kerberos daemon via D-Bus and returns a Kerberos object.

func (*Kerberos) AcquireKerberosTgt

func (k *Kerberos) AcquireKerberosTgt(ctx context.Context, principalName, password string, rememberPassword, useLoginPassword bool) (*kp.AcquireKerberosTgtResponse, error)

AcquireKerberosTgt calls the AcquireKerberosTgt D-Bus method.

func (*Kerberos) AddAccount

func (k *Kerberos) AddAccount(ctx context.Context, principalName string) (*kp.AddAccountResponse, error)

AddAccount calls the AddAccount D-Bus method.

func (*Kerberos) ClearAccounts

func (k *Kerberos) ClearAccounts(ctx context.Context) (*kp.ClearAccountsResponse, error)

ClearAccounts calls the ClearAccounts D-Bus method.

func (*Kerberos) GetKerberosFiles

func (k *Kerberos) GetKerberosFiles(ctx context.Context, principalName string) (*kp.GetKerberosFilesResponse, error)

GetKerberosFiles calls the GetKerberosFiles D-Bus method.

func (*Kerberos) ListAccounts

func (k *Kerberos) ListAccounts(ctx context.Context) (*kp.ListAccountsResponse, error)

ListAccounts calls the ListAccounts D-Bus method.

func (*Kerberos) RemoveAccount

func (k *Kerberos) RemoveAccount(ctx context.Context, principalName string) (*kp.RemoveAccountResponse, error)

RemoveAccount calls the RemoveAccount D-Bus method.

func (*Kerberos) SetConfig

func (k *Kerberos) SetConfig(ctx context.Context, principalName, krb5Conf string) (*kp.SetConfigResponse, error)

SetConfig calls the SetConfig D-Bus method.

func (*Kerberos) ValidateConfig

func (k *Kerberos) ValidateConfig(ctx context.Context, krb5Conf string) (*kp.ValidateConfigResponse, error)

ValidateConfig calls the ValidateConfig D-Bus method.

Jump to

Keyboard shortcuts

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