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:
@@ -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'))
|
||||
|
Reference in New Issue
Block a user