diff --git a/apps/jumpserver/conf.py b/apps/jumpserver/conf.py index 9beb2954a..75978ea41 100644 --- a/apps/jumpserver/conf.py +++ b/apps/jumpserver/conf.py @@ -142,7 +142,6 @@ class Config(dict): 'AUTH_OPENID_CLIENT_SECRET': '', 'AUTH_OPENID_IGNORE_SSL_VERIFICATION': True, 'AUTH_OPENID_SHARE_SESSION': True, - 'CAS_ROOT_PROXIED_AS': '', 'AUTH_RADIUS': False, 'RADIUS_SERVER': 'localhost', @@ -153,6 +152,7 @@ class Config(dict): 'AUTH_CAS': False, 'CAS_SERVER_URL': "http://host/cas/", + 'CAS_ROOT_PROXIED_AS': '', 'CAS_LOGOUT_COMPLETELY': True, 'CAS_VERSION': 3, diff --git a/config_example.yml b/config_example.yml index 321668a7f..5699f4ff0 100644 --- a/config_example.yml +++ b/config_example.yml @@ -64,7 +64,7 @@ REDIS_PORT: 6379 # AUTH_OPENID_CLIENT_SECRET: client-secret # AUTH_OPENID_IGNORE_SSL_VERIFICATION: True # AUTH_OPENID_SHARE_SESSION: True -# + # Use Radius authorization # 使用Radius来认证 # AUTH_RADIUS: false @@ -72,6 +72,13 @@ REDIS_PORT: 6379 # RADIUS_PORT: 1812 # RADIUS_SECRET: +# CAS 配置 +# AUTH_CAS': False, +# CAS_SERVER_URL': "http://host/cas/", +# CAS_ROOT_PROXIED_AS': 'http://jumpserver-host:port', +# CAS_LOGOUT_COMPLETELY': True, +# CAS_VERSION': 3, + # LDAP/AD settings # LDAP 搜索分页数量 # AUTH_LDAP_SEARCH_PAGED_SIZE: 1000