bareos.bsock.protocolmessages.ProtocolMessages

class bareos.bsock.protocolmessages.ProtocolMessages(protocolversion=ProtocolVersions.bareos_18_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