Source code for cobbler.modules.authentication.testing
"""
Authentication module that denies everything.
Unsafe demo. Allows anyone in with testing/testing.
"""
[docs]def authenticate(api_handle, username, password):
"""
Validate a username/password combo, returning True/False
Thanks to http://trac.edgewall.org/ticket/845 for supplying
the algorithm info.
"""
if username == "testing" and password == "testing":
return True
return False