diff options
Diffstat (limited to 'bareos/bsock/protocolmessages.py')
-rw-r--r-- | bareos/bsock/protocolmessages.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bareos/bsock/protocolmessages.py b/bareos/bsock/protocolmessages.py index 78fb3a9..0db3642 100644 --- a/bareos/bsock/protocolmessages.py +++ b/bareos/bsock/protocolmessages.py @@ -28,5 +28,13 @@ class ProtocolMessages(): return b"1999 Authorization failed.\n" @staticmethod + def not_authorized(): + return b"1999 You are not authorized.\n" + + @staticmethod def is_auth_ok(msg): return msg == ProtocolMessages.auth_ok() + + @staticmethod + def is_not_authorized(msg): + return msg == ProtocolMessages.not_authorized()
\ No newline at end of file |