Code

Corrected tag check.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Feb 2008 12:50:58 +0000 (12:50 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 14 Feb 2008 12:50:58 +0000 (12:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8906 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index 2dc40fffcda9cd991d534338e31ae4afe8e65098..ef5081e34f4a4c41c9bb964761201feb56be6dc5 100644 (file)
@@ -61,7 +61,7 @@ $network_interface= &get_interface_for_ip($server_ip);
 $server_mac_address= &get_mac($network_interface);
 
 # Unit tag can be defined in config
-if(not defined($gosa_unit_tag) || length($gosa_unit_tag)==0) {
+if((not defined($gosa_unit_tag)) || length($gosa_unit_tag) == 0) {
        # Read gosaUnitTag from LDAP
        my $tmp_ldap= Net::LDAP->new($ldap_uri);
        if(defined($tmp_ldap)) {
@@ -82,8 +82,12 @@ if(not defined($gosa_unit_tag) || length($gosa_unit_tag)==0) {
                                $gosa_unit_tag= $unit_tag;
                        }
                        $mesg = $tmp_ldap->unbind;
+               } else {
+                       &main::daemon_log("Not using gosaUnitTag",8);
                }
        }
+} else {
+       &main::daemon_log("Using gosaUnitTag from config-file: $gosa_unit_tag",6);
 }
 
 # complete addresses