diff --git a/contrib/bin/fusiondirectory-setup b/contrib/bin/fusiondirectory-setup index 2b31fd9d56c7a1afb1573c197992586957d38684..547336320832b871b0b356e26ae498e634fcc075 100644 --- a/contrib/bin/fusiondirectory-setup +++ b/contrib/bin/fusiondirectory-setup @@ -794,7 +794,7 @@ sub get_ldap_connexion { # bind to the LDAP server if (-e $fd_secrets) { - open($secret_file, $fd_secrets) || die ("Could not open $fd_secrets"); + open($secret_file, q{<}, $fd_secrets) || die ("Could not open $fd_secrets"); my $key = ""; while(<$secret_file>) { if ($_ =~ m/RequestHeader set FDKEY ([^ \n]+)\n/) { @@ -808,7 +808,7 @@ sub get_ldap_connexion { if ($tls) { # Read LDAP config file - open ($ldap_conf,$vars{ldap_conf}) or die ("! Failed to open ldap config file '$vars{ldap_conf}': $!\n"); + open ($ldap_conf, q{<}, $vars{ldap_conf}) or die ("! Failed to open ldap config file '$vars{ldap_conf}': $!\n"); my %tls_options = ( 'REQCERT' => 'require',