[Pkg-cups-devel] Bug#618793: cups: [PATCH] Add LDAP browse filter for LDAP printer sharing

Julien-externe BLACHE julien-externe.blache at edf.fr
Fri Mar 18 14:42:37 UTC 2011


Package: cups
Version 1.4.4-7
Severity: wishlist
Tags: patch

Hi,

This wishlist bug is basically a repost of CUPS STR #3775 for the benefit 
of Debian users, given the patch hasn't made it upstream due to copyright 
assignment issues.

The attached patch adds a new BrowseLDAPFilter config option for LDAP 
printer sharing on the client side.

This LDAP filter, if defined, is ANDed with the default 
(objectClass=cupsPrinter) filter when searching for shared printers.

We have 2 CUPS servers sharing a few hundreds printers and we use this 
filter to reduce the number of printers shown on the client side based on 
keywords in the printerLocation attribute:

   BrowseLDAPFilter (printerLocation=Site1*)

Without this, our users would see hundreds of printers in their print 
panel, which would be downright unusable.

Note that for this filter to work, the schema must be altered to specify a 
matching rule for substrings on printerLocation and a proper index must be 
added (sub index on printerLocation).

Patch is against 1.4.4.

JB.

-- 
Consultant INTM - Debian Developer - TMI Calibre
EDF - DSP - CSP IT - ITS Rhône Alpes - C4S - CCNPS
04 69 65 68 56




Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse.

Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message.

Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus.
____________________________________________________

This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval.

If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message.

E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldap_sharing_browse_filter.patch
Type: application/octet-stream
Size: 4055 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-cups-devel/attachments/20110318/eda17cbc/attachment.obj>


More information about the Pkg-cups-devel mailing list