freeradius

package
v8.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchClearRadiusOnlineDataByNas

func BatchClearRadiusOnlineDataByNas(nasip, nasid string) error

func Listen

func Listen() error

Types

type FreeradiusServer

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

func NewFreeRADIUSServer

func NewFreeRADIUSServer() *FreeradiusServer

func (*FreeradiusServer) FreeradiusAccounting

func (s *FreeradiusServer) FreeradiusAccounting(c echo.Context) error

FreeradiusAccounting Accounting processing

func (*FreeradiusServer) FreeradiusAuthenticate

func (s *FreeradiusServer) FreeradiusAuthenticate(c echo.Context) error

FreeradiusAuthenticate Authenticate processing

#  FreeradiusAuthorize/FreeradiusAuthenticate
#
#  Code   Meaning       Process body  Module code
#  404    not found     no            notfound
#  410    gone          no            notfound
#  403    forbidden     no            userlock
#  401    unauthorized  yes           reject
#  204    no content    no            ok
#  2xx    successful    yes           ok/updated
#  5xx    server error  no            fail
#  xxx    -             no            invalid

func (*FreeradiusServer) FreeradiusAuthorize

func (s *FreeradiusServer) FreeradiusAuthorize(c echo.Context) error

FreeradiusAuthorize Authorize processing, if the user exists, the password response is sent back for further verification.

#  FreeradiusAuthorize/FreeradiusAuthenticate
#
#  Code   Meaning       Process body  Module code
#  404    not found     no            notfound
#  410    gone          no            notfound
#  403    forbidden     no            userlock
#  401    unauthorized  yes           reject
#  204    no content    no            ok
#  2xx    successful    yes           ok/updated
#  5xx    server error  no            fail
#  xxx    -             no            invalid

func (*FreeradiusServer) FreeradiusPostauth

func (s *FreeradiusServer) FreeradiusPostauth(c echo.Context) error

FreeradiusPostauth Postauth processing

func (*FreeradiusServer) Start

func (s *FreeradiusServer) Start() error

Start 启动服务器

Jump to

Keyboard shortcuts

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