mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-19 18:34:28 +00:00
perf: 支持配置 RADIUS_ATTRIBUTES 属性
This commit is contained in:
@@ -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,
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user