mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 12:10:06 -03:30
Merge pull request #1572 from rooftopcellist/radius_auth_fix
Radius auth fix
This commit is contained in:
@@ -182,13 +182,13 @@ class RADIUSBackend(BaseRADIUSBackend):
|
|||||||
Custom Radius backend to verify license status
|
Custom Radius backend to verify license status
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def authenticate(self, username, password):
|
def authenticate(self, request, username, password):
|
||||||
if not django_settings.RADIUS_SERVER:
|
if not django_settings.RADIUS_SERVER:
|
||||||
return None
|
return None
|
||||||
if not feature_enabled('enterprise_auth'):
|
if not feature_enabled('enterprise_auth'):
|
||||||
logger.error("Unable to authenticate, license does not support RADIUS authentication")
|
logger.error("Unable to authenticate, license does not support RADIUS authentication")
|
||||||
return None
|
return None
|
||||||
return super(RADIUSBackend, self).authenticate(username, password)
|
return super(RADIUSBackend, self).authenticate(request, username, password)
|
||||||
|
|
||||||
def get_user(self, user_id):
|
def get_user(self, user_id):
|
||||||
if not django_settings.RADIUS_SERVER:
|
if not django_settings.RADIUS_SERVER:
|
||||||
|
|||||||
Reference in New Issue
Block a user