Source code for cobbler.modules.authentication.denyall

"""
Authentication module that denies everything.
Used to disable the WebUI by default.
"""


[docs]def register(): """ The mandatory cobbler module registration hook. """ return "authn"
[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. """ # debugging only (not safe to enable) # api_handle.logger.debug("backend authenticate (%s,%s)" % (username,password)) return False