Browse Source

perf: 支持配置 RADIUS_ATTRIBUTES 属性

pull/12517/head
Bai 11 months ago committed by 老广
parent
commit
25223719cb
  1. 1
      apps/jumpserver/conf.py
  2. 2
      apps/jumpserver/settings/auth.py

1
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,

2
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

Loading…
Cancel
Save