Bugfix parse ldap server config
This commit is contained in:
parent
6c8ffb3e7e
commit
253386b0a5
|
@ -1173,7 +1173,8 @@ def _configuration_ldap_helper(to_save):
|
||||||
reboot_required |= _config_string(to_save, "config_ldap_key_path")
|
reboot_required |= _config_string(to_save, "config_ldap_key_path")
|
||||||
_config_string(to_save, "config_ldap_group_name")
|
_config_string(to_save, "config_ldap_group_name")
|
||||||
|
|
||||||
to_save["config_ldap_provider_url"] = urlparse(to_save.get("config_ldap_provider_url","")).hostname or ""
|
address = urlparse(to_save.get("config_ldap_provider_url", ""))
|
||||||
|
to_save["config_ldap_provider_url"] = (address.hostname or address.path).strip("/")
|
||||||
reboot_required |= _config_string(to_save, "config_ldap_provider_url")
|
reboot_required |= _config_string(to_save, "config_ldap_provider_url")
|
||||||
|
|
||||||
if to_save.get("config_ldap_serv_password_e", "") != "":
|
if to_save.get("config_ldap_serv_password_e", "") != "":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user