1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 23:19:36 +00:00

[python] Read LDAP config from ccnet.conf

This commit is contained in:
zhengxie
2017-01-20 16:03:54 +08:00
parent 741d26f0aa
commit 60a5ac7371
2 changed files with 6 additions and 1 deletions

View File

@@ -60,6 +60,11 @@ else:
CCNET_SERVER_PORT = None
SERVICE_URL = None
if config.has_option('LDAP', 'HOST'):
LDAP_HOST = config.get('LDAP', 'HOST')
else:
LDAP_HOST = None
SERVER_ID = config.get('General', 'ID')
config.read(os.path.join(SEAFILE_CENTRAL_CONF_DIR if SEAFILE_CENTRAL_CONF_DIR else SEAFILE_CONF_DIR,
'seafile.conf'))