mirror of https://github.com/jumpserver/jumpserver
perf: 支持配置 RADIUS_ATTRIBUTES 属性
parent
814dbeb749
commit
25223719cb
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue