ansible

package
v0.0.0-...-bf29001 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HostExpr = regexp.MustCompile(`^(ldaps?)://([\w-.]+)(:(\d+))?$`)

Functions

func LdapAuthenticator

func LdapAuthenticator(options *LdapOptions) (martini.Handler, error)

Types

type LdapOptions

type LdapOptions struct {
	Enabled    bool
	Host       string
	Port       uint16
	SSL        bool
	BaseDN     string `toml:"base_dn"`
	UserFilter string `toml:"user_filter"`
}

type Server

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

func NewServer

func NewServer() *Server

func (*Server) ConfigureLDAP

func (s *Server) ConfigureLDAP(options *LdapOptions) error

func (*Server) ExecCommand

func (s *Server) ExecCommand(req *http.Request) (int, interface{})

func (*Server) Ping

func (s *Server) Ping() []byte

func (*Server) PutFile

func (s *Server) PutFile(req *http.Request) (int, string)

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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