From 95d540630ea6383c9d354d869944db8c87f3d48c Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 4 Oct 2020 06:15:35 +0200 Subject: [PATCH] Change ldap_certpath to file --- cps/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/admin.py b/cps/admin.py index cd37ad80..ebe2fdff 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -604,7 +604,7 @@ def _configuration_ldap_helper(to_save, gdriveError): return reboot_required, _configuration_result(_('LDAP User Object Filter Has Unmatched Parenthesis'), gdriveError) - if config.config_ldap_cert_path and not os.path.isdir(config.config_ldap_cert_path): + if config.config_ldap_cert_path and not os.path.isfile(config.config_ldap_cert_path): return reboot_required, _configuration_result(_('LDAP Certificate Location is not Valid, Please Enter Correct Path'), gdriveError) return reboot_required, None