[cups.development] [RFE] STR #3775: Add custom LDAP filter to LDAP printer sharing

Julien BLACHE jb at jblache.org
Wed Jan 19 08:36:09 PST 2011


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Hi,

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).

As a side note, it would be nice if the schema could be part of the CUPS
distribution, as there are slightly different and outdated versions
floating around.

If the patch needs to be modified in any way, let me know.
(patch is against 1.4.4, can rebase against a newer version as needed)

Thanks,

JB.

Link: http://www.cups.org/str.php?L3775
Version:  -feature
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ldap_sharing_browse_filter.patch
URL: <https://lists.cups.org/pipermail/cups/attachments/20110119/c2c92aff/attachment.ksh>


More information about the cups mailing list