Check that key and cert file paths are valid

This commit is contained in:
Jamie Cameron
2018-09-23 01:24:14 +00:00
parent 248a33aef6
commit c06e9d9a72
2 changed files with 3 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ $conf = &get_config();
if ($in{'dest_def'}) {
$keyfile = &find_value("TLSCertificateKeyFile", $conf);
$certfile = &find_value("TLSCertificateFile", $conf);
$keyfile =~ /^\// || &error($text{'gencert_epath'});
$certfile =~ /^\// || &error($text{'gencert_epath'});
}
else {
# In some dir

View File

@@ -262,6 +262,7 @@ gencert_same=Current config files
gencert_dir=Directory
gencert_err=Failed to generate certificate
gencert_edest=Destination directory does not exist
gencert_epath=Certificate and key files in the LDAP server config must be absolute paths
perms_err=Failed to fix file ownership