Wednesday, February 22, 2012

CUPS, Samba, and Windows 7

This isn’t really a directed how to, just a reminder about a few things.
Samba 3.2.5 is the version in Debian Lenny.  It does not work with Windows 7 without making changes to the client.  Registry keys need to be added to allow older, less secure methods of authentication.  To get a Windows 7 domain client in a virtual machine to connect to my samba domain member server, this worked.  Not pretty, not production safe, really not advisable, but it’s in a VM that rarely gets used.  A much better way is to follow the samba wiki instructions and upgrade to 3.3 or 3.4 to get built in support without resorting to weak authentication methods.

CUPS is great, but sometimes things don’t work as the manual says they do.  (The manual does say that many third party drivers don’t have accounting support, so CUPS is not at fault here.)  HPLIP drivers don’t seem to have page_count support, which means that you can’t do accounting.  Gutenprint drivers do seem to have page_count implemented, so that’s good.  Except that newer printers need newer versions of Gutenprint and backports.org doesn’t have the newer version available.  Pinning is possible and probably what I will have to resort to.
Actually, I’ll probably have to do the same for CUPS itself as 1.3.8 in Lenny seems to have an issue with setting accounting on a queue–it silently fails to write the change to /etc/cups/printers.conf.  The issue is fixed in the 1.4 series.

This is the trade off for having such a stable operating system.  It could be much, much worse.

No comments:

Post a Comment