rad

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

set ldap as auth provider

View Source
var EnableMetrics bool

Functions

func AcceptUser

func AcceptUser(w radius.ResponseWriter, r *radius.Request) (code radius.Code)

func AddVendorGroup

func AddVendorGroup(p *radius.Packet, r *radius.Request)

func IsOtpCodeValied

func IsOtpCodeValied(username string, password string) bool

func IsUserPassValied

func IsUserPassValied(auth_provider authentiate.Auth_Provider, username string, password string) bool

func RejectUser

func RejectUser(w radius.ResponseWriter, r *radius.Request) (code radius.Code)

func SendForChalenge

func SendForChalenge(w radius.ResponseWriter, r *radius.Request) (code radius.Code)

func StartRadius

func StartRadius()

func User_PassHandler

func User_PassHandler(w radius.ResponseWriter, r *radius.Request)

Types

type RadConfs

type RadConfs struct {
	ListenAddress              string
	Secret                     string
	Enable_Fortinet_Group_Name bool
	Authentication_Mode        string //only_otp, only_password, two_fa
}
var RadiusConfigs RadConfs

type Statepool

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

func (*Statepool) Delete

func (s *Statepool) Delete(username string)

func (*Statepool) Init

func (s *Statepool) Init()

func (*Statepool) Insert

func (s *Statepool) Insert(username string, group string)

func (*Statepool) Lookup

func (s *Statepool) Lookup(username string) (state string, group string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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