saslauthd

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(user, pwd, service, real string) (ok bool, err error)

Auth verifies given creds in saslauthd.

func AuthWithConnect

func AuthWithConnect(user, pwd, service, real string, connect ConnectFn) (ok bool, err error)

AuthWithConnect verifies given creds in saslauthd using given connect function to reach it.

func Available

func Available() bool

Available returns true iff saslauthd socket is reachable.

func Supported

func Supported() bool

Supported returns true on all platforms where saslauthd code is supported (which is essentially all but windows).

Types

type ConnectFn

type ConnectFn func() (io.ReadWriteCloser, error)

ConnectFn is function used to establish connection to saslauthd.

Jump to

Keyboard shortcuts

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