|
|
@ -547,7 +547,7 @@ def _configuration_update_helper():
|
|
|
|
if config.config_login_type == constants.LOGIN_LDAP:
|
|
|
|
if config.config_login_type == constants.LOGIN_LDAP:
|
|
|
|
reboot_required |= _config_string("config_ldap_provider_url")
|
|
|
|
reboot_required |= _config_string("config_ldap_provider_url")
|
|
|
|
reboot_required |= _config_int("config_ldap_port")
|
|
|
|
reboot_required |= _config_int("config_ldap_port")
|
|
|
|
# _config_string("config_ldap_schema")
|
|
|
|
reboot_required |= _config_int("config_ldap_authentication")
|
|
|
|
reboot_required |= _config_string("config_ldap_dn")
|
|
|
|
reboot_required |= _config_string("config_ldap_dn")
|
|
|
|
reboot_required |= _config_string("config_ldap_serv_username")
|
|
|
|
reboot_required |= _config_string("config_ldap_serv_username")
|
|
|
|
reboot_required |= _config_string("config_ldap_user_object")
|
|
|
|
reboot_required |= _config_string("config_ldap_user_object")
|
|
|
@ -569,9 +569,13 @@ def _configuration_update_helper():
|
|
|
|
return _configuration_result(_('Please Enter a LDAP Provider, '
|
|
|
|
return _configuration_result(_('Please Enter a LDAP Provider, '
|
|
|
|
'Port, DN and User Object Identifier'), gdriveError)
|
|
|
|
'Port, DN and User Object Identifier'), gdriveError)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if config.config_ldap_authentication > constants.LDAP_AUTH_ANONYMOUS:
|
|
|
|
if not config.config_ldap_serv_username or not bool(config.config_ldap_serv_password):
|
|
|
|
if config.config_ldap_authentication > constants.LDAP_AUTH_UNAUTHENTICATE:
|
|
|
|
return _configuration_result('Please Enter a LDAP Service Account and Password', gdriveError)
|
|
|
|
if not config.config_ldap_serv_username:
|
|
|
|
|
|
|
|
return _configuration_result('Please Enter a LDAP Service Account', gdriveError)
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
if not config.config_ldap_serv_username or not bool(config.config_ldap_serv_password):
|
|
|
|
|
|
|
|
return _configuration_result('Please Enter a LDAP Service Account and Password', gdriveError)
|
|
|
|
|
|
|
|
|
|
|
|
#_config_checkbox("config_ldap_use_ssl")
|
|
|
|
#_config_checkbox("config_ldap_use_ssl")
|
|
|
|
#_config_checkbox("config_ldap_use_tls")
|
|
|
|
#_config_checkbox("config_ldap_use_tls")
|
|
|
|