Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthControlFileEnvKey = "auth_control_file" AuthPendingFileEnvKey = "auth_pending_file" AuthFailedReasonFileEnvKey = "auth_failed_reason_file" )
Variables ¶
View Source
var ( ErrAuthControlFileNotSet = errors.New("auth_control_file not set") ErrAuthPendingFileNotSet = errors.New("auth_pending_file not set") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
AuthFailedReasonFile string
AuthPendingFile string
AuthControlFile string
ClientConfig string
ClientID uint64 // A unique identifier for the client
// contains filtered or unexported fields
}
func (*Client) GetConnectMessage ¶
func (*Client) GetDisconnectMessage ¶
func (*Client) WriteAuthPending ¶
func (c *Client) WriteAuthPending(resp *management.Response) error
WriteAuthPending writes the auth_pending_file can be written, which causes the openvpn server to send a pending auth request to the client. See doc/management.txt for more details on this authentication mechanism. The format of the auth_pending_file is line 1: timeout in seconds line 2: Pending auth method the client needs to support (e.g. webauth) line 3: EXTRA (e.g. WEB_AUTH::http://www.example.com)
func (*Client) WriteToAuthFile ¶
Click to show internal directories.
Click to hide internal directories.