From: janw Date: Fri, 15 May 2009 08:17:07 +0000 (+0000) Subject: Fix result of Net::LDAP::Add X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=af7f1b2f8f3eac5a9f4c209054a86e030a779b13;p=gosa.git Fix result of Net::LDAP::Add git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13651 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/ClientPackages.pm b/gosa-si/modules/ClientPackages.pm index 4a83e1664..288232394 100644 --- a/gosa-si/modules/ClientPackages.pm +++ b/gosa-si/modules/ClientPackages.pm @@ -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); } } }