opendevops-cn / opendevops

CODO是一款为用户提供企业多混合云、全球一站式DevOps、自动化运维、完全开源的云管理平台、自动化运维平台
http://www.opendevops.cn/
GNU General Public License v3.0
3.77k stars 1.02k forks source link

配置ldap的时候出现报500错误 #24

Closed zengyunlong closed 5 years ago

zengyunlong commented 5 years ago
HTTPServerRequest(protocol='http', host='mg.domain.com:8010', method='POST', uri='/v2/sysconfig/check/', version='HTTP/1.0', remote_ip='127.0.0.1')
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/tornado/web.py", line 1543, in _execute
    result = yield result
  File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 1099, in run
    value = future.result()
  File "/usr/local/lib/python3.6/site-packages/tornado/gen.py", line 296, in wrapper
    result = func(*args, **kwargs)
  File "/usr/local/lib/python3.6/types.py", line 248, in wrapped
    coro = func(*args, **kwargs)
  File "/var/www/codo-admin/mg/handlers/app_settings_handler.py", line 88, in post
    ldap_ssl)
  File "/usr/local/lib/python3.6/site-packages/websdk/ldap.py", line 18, in __init__
    self.ldap_server = Server(ldap_server_host, port=ldap_server_port, use_ssl=ldap_use_ssl)
  File "/usr/local/lib/python3.6/site-packages/ldap3/core/server.py", line 86, in __init__
    host = host.strip()
AttributeError: 'NoneType' object has no attribute 'strip'

感觉像是host参数没有传入,不知道是哪儿配置有问题,麻烦帮忙看看,十分感谢

zengyunlong commented 5 years ago

是要先提交才能点测试