Code

Fixed filter to not see printers
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 15:47:53 +0000 (15:47 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 16 Apr 2008 15:47:53 +0000 (15:47 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10518 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/modules/SIPackages.pm

index 02f407b708380b86887a6cf6b1321f360ae0f32f..2c15a511dd93ff91f1834d7c9ef999b72bb67b4f 100644 (file)
@@ -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;