Commit 6354858b authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4190 Only reading ldap config in check-ldap

Showing with 1 addition and 6 deletions
+1 -6
......@@ -85,10 +85,6 @@ my $yes_flag = 0;
my %classes_hash_result = ();
my %i18n_hash_result = ();
#~ my $oupeople = "people";
#~ my $peopleou = "ou=$oupeople";
#~ my $ouroles = "aclroles";
#~ my $rolesou = "ou=$ouroles";
my $configrdn = "cn=config,ou=fusiondirectory";
my $userrdn = "ou=people";
my $aclrolerdn = "ou=aclroles";
......@@ -956,6 +952,7 @@ sub branch_exists {
# function that check LDAP configuration
sub check_ldap {
read_ldap_config();
# initiate the LDAP connexion
my %hash_ldap_param = get_ldap_connexion();
......@@ -1552,8 +1549,6 @@ die ("! You have to run this script as root\n") if ($<!=0);
set_vars();
read_ldap_config();
foreach my $arg ( @ARGV ) {
if (( lc($arg) =~ m/^--set-(.*)=(.*)/ ) && (grep {$_ eq lc($1)} @vars_keys)) {
$vars{lc($1)} = $2;
......
  • bmortier @bmortier

    mentioned in issue #1376

    By Côme Chilliet on 2017-09-02T15:24:20 (imported from GitLab)

    ·

    mentioned in issue #1376

    By Côme Chilliet on 2017-09-02T15:24:20 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment