Code

Fix result of Net::LDAP::Add
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 May 2009 08:17:07 +0000 (08:17 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 15 May 2009 08:17:07 +0000 (08:17 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13651 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/ClientPackages.pm

index 4a83e1664c7320020b0ad91eb0333f52ac52f8be..2882323941abff34e6aeb53267fdefab5ad30270 100644 (file)
@@ -169,8 +169,8 @@ $main::server_address = $server_address;
             $incomingou->dn('ou=incoming,'.$ldap_base);
             $incomingou->add('objectClass' => 'organizationalUnit');
             my $result = $incomingou->update($ldap_handle);
-            if($result != 0) {
-                &main::daemon_log("0 ERROR: Problem adding ou=incoming: '".$result->errorMessage."'!", 1);
+            if($result->code != 0) {
+                &main::daemon_log("0 ERROR: Problem adding ou=incoming: '".$result->error()."'!", 1);
             }
     }
   }