Code

Don't use entry with wildcard mac address as server_dn
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 May 2008 13:02:38 +0000 (13:02 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 19 May 2008 13:02:38 +0000 (13:02 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10954 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/ClientPackages.pm

index 1924f5a1e2a32bae9689bb58b97e3b37362abe2a..ec549253d4d4a771f2847a573ed8faf32df82ce6 100644 (file)
@@ -92,7 +92,7 @@ if((not defined($main::gosa_unit_tag)) || length($main::gosa_unit_tag) == 0) {
                        filter => "(macaddress=$main::server_mac_address)"
                );
 
-               if ($mesg->count == 1) {
+               if ((! $main::server_mac_address eq "00:00:00:00:00:00") and $mesg->count == 1) {
                        my $entry= $mesg->entry(0);
                        my $unit_tag= $entry->get_value("gosaUnitTag");
                        $main::ldap_server_dn= $mesg->entry(0)->dn;