dataloader

package
v0.0.0-...-549c736 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const M_REALMNOTFOUND = "REALM NOT FOUND!"
View Source
const M_SVCNOTCROSSTRUSTED = "SERVICE IS NOT A CROSS-TRUSTED SERVICE!"
View Source
const M_SVCNOTTRUSTED = "SERVICE IS NOT A TRUSTED SERVICE!"
View Source
const M_USERNOTTRUSTED = "USER NOT FOUND!"

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	KDC_Port       string  `mapstructure:"kdc_port"`
	Kerberos_Token string  `mapstructure:"kerberos_token"`
	Key_Bytes      uint64  `mapstructure:"key_bytes"`
	Realms         []Realm `mapstructure:"realms"`
}

func LoadDatabase

func LoadDatabase() (Database, error)

type Realm

type Realm struct {
	Name                        string             `mapstructure:"name"`
	Max_Lifetime                uint64             `mapstructure:"max_lifetime"`
	User_Principals             []UserPrincipal    `mapstructure:"user_principals"`
	Service_Principals          []ServicePrincipal `mapstructure:"service_principals"`
	External_Service_Principals []string           `mapstructure:"external_service_principals"`
}

func GetRealm

func GetRealm(name string, db *Database) (*Realm, error)

type ServicePrincipal

type ServicePrincipal struct {
	SPN           string `mapstructure:"spn"`
	Shared_Secret string `mapstructure:"shared_secret"`
}

func GetCrossRealmService

func GetCrossRealmService(name string, svc_rlm *Realm, src_rlm *Realm) (*ServicePrincipal, error)

func GetService

func GetService(name string, rlm *Realm) (*ServicePrincipal, error)

type UserPrincipal

type UserPrincipal struct {
	Username string `mapstructure:"username"`
	Password string `mapstructure:"password"`
}

func GetUser

func GetUser(username string, rlm *Realm) (*UserPrincipal, error)

Jump to

Keyboard shortcuts

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