tekmor

package module
v0.0.0-...-7c4af1c Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 3 Imported by: 1

README

Tekmor

Tekmor was both a primitve Greek goddess and a word indicating a

sure sign, or token of some high and solemn kind"

As such, Tekmor serves as a simple abstraction in golang for passing authentication to PAM and determining whether or not it was successful.

CGO and Requirements

Since we're using msteinert's pam library, it has dependencies on GCC as well as the development libraries for PAM.

For Ubuntu systems, this would mean the following: apt-get install -y build-essential libpam0g-dev

I have had little to no success on MAC as of yet, but these core dependencies will be necessary before a go get github.com/msteinert/pam will be successful.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Details  UserDetails
}

Identity is the core component for Tekmor used for authentication against PAM

func (Identity) Authenticate

func (i Identity) Authenticate() (UserDetails, error)

Authenticate handles determining whether or not an Identity is valid per PAM

type UserDetails

type UserDetails struct {
	Username string
	Home     string
	Group    string
}

UserDetails is a struct containing Unix Shell details for an account that has PAM Authenticated

Jump to

Keyboard shortcuts

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