Betrifft soweit bekannt die Version 1.3.0 von LConf.
Problem
Im LDAP-Verzeichnis konfigurierte Hostabhängigkeiten werden nicht exportiert.
Lösung
Im LConf script "generate.pm" wird anscheinend ein falscher String verwendet, um die Abhängigkeit auszulesen.
Die betrifft die Zeilen 457, 463 und 464. Hier wird jeweils "DEPENDENCY" abgefragt, in "lapd.pm" wird aber anscheinend "HOSTDEPENDENCY" angelegt analog zu "SERVICEDEPENDENCY".
alt
# # HOST DEPENDENCIES # foreach my $dependency (sort keys %{$CLIENTS->{$client}->{'DEPENDENCY'}}) { # only if host is not disabled if (!$CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostdisable"}) { print FH "define hostdependency {\n"; print FH "\thost_name\t$dependency\n"; print FH "\tdependent_host_name\t$CLIENTS->{$client}->{cn}\n"; foreach(sort keys %{$CLIENTS->{$client}->{DEPENDENCY}->{$dependency}}) { print FH "\t$itemMap{$_}\t$CLIENTS->{$client}->{DEPENDENCY}->{$dependency}->{$_}\n" if $itemMap{$_}; } print FH "}\n"; print FH "\n"; } }
neu
# # HOST DEPENDENCIES # foreach my $dependency (sort keys %{$CLIENTS->{$client}->{'HOSTDEPENDENCY'}}) { # only if host is not disabled if (!$CLIENTS->{$client}->{"$cfg->{ldap}->{prefix}hostdisable"}) { print FH "define hostdependency {\n"; print FH "\thost_name\t$dependency\n"; print FH "\tdependent_host_name\t$CLIENTS->{$client}->{cn}\n"; foreach(sort keys %{$CLIENTS->{$client}->{HOSTDEPENDENCY}->{$dependency}}) { print FH "\t$itemMap{$_}\t$CLIENTS->{$client}->{HOSTDEPENDENCY}->{$dependency}->{$_}\n" if $itemMap{$_}; } print FH "}\n"; print FH "\n"; } }
Verwandte Artikel