diff --git a/apps/jumpserver/conf.py b/apps/jumpserver/conf.py index 18e570271..d6fb241db 100644 --- a/apps/jumpserver/conf.py +++ b/apps/jumpserver/conf.py @@ -327,6 +327,7 @@ class Config(dict): 'RADIUS_SERVER': 'localhost', 'RADIUS_PORT': 1812, 'RADIUS_SECRET': '', + 'RADIUS_ATTRIBUTES': {}, 'RADIUS_ENCRYPT_PASSWORD': True, 'OTP_IN_RADIUS': False, diff --git a/apps/jumpserver/settings/auth.py b/apps/jumpserver/settings/auth.py index ff26efd19..66ae6289c 100644 --- a/apps/jumpserver/settings/auth.py +++ b/apps/jumpserver/settings/auth.py @@ -99,6 +99,8 @@ AUTH_RADIUS_BACKEND = 'authentication.backends.radius.RadiusBackend' RADIUS_SERVER = CONFIG.RADIUS_SERVER RADIUS_PORT = CONFIG.RADIUS_PORT RADIUS_SECRET = CONFIG.RADIUS_SECRET +# https://github.com/robgolding/django-radius/blob/develop/radiusauth/backends/radius.py#L15-L52 +RADIUS_ATTRIBUTES = CONFIG.RADIUS_ATTRIBUTES # CAS Auth AUTH_CAS = CONFIG.AUTH_CAS