From 39fd6de736e4d7153cbf16f4b4b7001a2977e0fb Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 16 Apr 2008 15:47:53 +0000 Subject: [PATCH] Fixed filter to not see printers git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10518 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/modules/SIPackages.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.30.2