From af7f1b2f8f3eac5a9f4c209054a86e030a779b13 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 15 May 2009 08:17:07 +0000 Subject: [PATCH] Fix result of Net::LDAP::Add git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13651 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/ClientPackages.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } } -- 2.30.2