Warning: This document is for the development version of Bareos Documentation. The main version is bareos-23.

bareos.bsock.protocolmessages.ProtocolMessages

class bareos.bsock.protocolmessages.ProtocolMessages(protocolversion=2)[source]

Bases: object

strings defined by the protocol to talk to the Bareos Director.

Methods

auth_failed

auth_ok

get_version

hello

is_auth_ok

is_not_authorized

not_authorized

pam_user_credentials

Returns a string similar to: 4002 USERNAME PASSWORD

set_version

static pam_user_credentials(pam_username, pam_password)[source]

Returns a string similar to: 4002 USERNAME PASSWORD