From: cajus Date: Wed, 16 Apr 2008 15:47:53 +0000 (+0000) Subject: Fixed filter to not see printers X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39fd6de736e4d7153cbf16f4b4b7001a2977e0fb;p=gosa.git Fixed filter to not see printers git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/SIPackages.pm b/gosa-si/modules/SIPackages.pm index 02f407b70..2c15a511d 100644 --- a/gosa-si/modules/SIPackages.pm +++ b/gosa-si/modules/SIPackages.pm @@ -700,8 +700,7 @@ sub new_ldap_config { $mesg = $ldap_handle->search( base => $ldap_base, scope => 'sub', attrs => ['dn', 'gotoLdapServer', 'gosaUnitTag', 'FAIclass'], - filter => "(&(objectClass=GOhard)(macaddress=$macaddress)(gotoLdapServer=*))"); - #$mesg->code && die $mesg->error; + filter => "(&(objectClass=GOhard)(!(objectClass=gotoPrinter))(macaddress=$macaddress)(gotoLdapServer=*))"); if($mesg->code) { &main::daemon_log("$session_id ".$mesg->error, 1); return;