Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Filters are programs offering additional restrictions on public keys. Filters []string // AllowStaticKeys specifies whether PAM-SSHCA should check public keys from StaticKeys for the current user. AllowStaticKeys bool // StaticKeys specifies the file paths to authorized keys. // The path is either an absolute path or one relative to the current user's home directory. StaticKeys []string // AllowCertificate specifies whether PAM-SSHCA should check certificates that signed by the trust CAs in CAKeys. AllowCertificate bool // SupportedCriticalOptions lists the CriticalOptions of SSH certs that PAM-SSHCA allows. SupportedCriticalOptions []string // CAKeys specified the paths of the trust CA public keys. CAKeys []string // Prompters is the list of prompters to prompt messages to users during authentication. Prompters []Prompter // contains filtered or unexported fields }
Config is the parsed config settings in pam_sshca.conf.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is the parser to parse pam_sshca.conf.
func (*Parser) ParseConfigFile ¶
ParseConfigFile reads the content in a file and parse the directives in it.
type Prompter ¶
type Prompter struct { // KeyIDProperty is the property/field in Key ID. // Please refer to the type `KeyID` in SSHRA repo. KeyIDProperty string // RE is the regular expression to match the key ID property. RE *regexp.Regexp // Message is the message that printed to users when the RE matches to KeyIDProperty. Message string }
Prompter prompt message to users during authentication.
Click to show internal directories.
Click to hide internal directories.