summaryrefslogtreecommitdiffstats
path: root/urpm/ldap.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/ldap.pm')
-rw-r--r--urpm/ldap.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/ldap.pm b/urpm/ldap.pm
index 5489948a..f93dde73 100644
--- a/urpm/ldap.pm
+++ b/urpm/ldap.pm
@@ -119,9 +119,7 @@ sub get_ldap_config() {
sub get_ldap_config_file {
my ($file) = @_;
- my %config = (
- ssl => 'off',
- );
+ my %config;
foreach (cat_($file)) {
s/#.*//;
s/^\s*//;
@@ -152,6 +150,8 @@ sub load_ldap_media {
my $config = get_ldap_config() or return;
+ $config->{ssl} = 'off';
+
# try first urpmi_foo and then foo
foreach my $opt (qw(base uri filter host ssl port binddn passwd scope)) {
if (!defined $config->{$opt} && defined $config->{"urpmi_$opt"}) {