Source code for cobbler.modules.authentication.passthru
"""
Authentication module that defers to Apache and trusts
what Apache trusts.
"""
from cobbler import utils
[docs]def authenticate(api_handle, username, password):
"""
Validate a username/password combo, returning True/False
Uses cobbler_auth_helper
"""
ss = utils.get_shared_secret()
if password == ss:
rc = True
else:
rc = False
return rc