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 ¶
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"` }
type ServicePrincipal ¶
type ServicePrincipal struct { SPN string `mapstructure:"spn"` }
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 ¶
Click to show internal directories.
Click to hide internal directories.