Bug 2277 - net ads printer publish does not set cups printer-location
net ads printer publish does not set cups printer-location
Product: Samba 3.0
Classification: Unclassified
Component: Printing
All All
: P3 normal
: none
Assigned To: Jim McDonough
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-01-24 03:43 UTC by Justin Dee
Modified: 2007-02-07 06:44 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Justin Dee 2005-01-24 03:43:11 UTC
I have cups configured with:
printing=cups and printcap=cups
In CUPS, I have set the "Location" field in the cups printer configuration.

It is very useful to set the printer location as per

Unfortunately, Samba does not appear to be copying the cups printer location
into AD when "net ads printer publish myprinter" is issued. The location field
is not shown.

"net ads printer search" does show the printer location field for Windows
printers which have it set.

I have had a dig through the Samba source and though I don't understand how it
all fits together particularly well, it looks like the code to get the location
from cups in  "printing=cups" mode is missing, and I think the same is also true
for net ads printer publish.
Comment 1 Gerald (Jerry) Carter 2005-02-07 07:29:35 UTC
resetting version
Comment 2 Gerald (Jerry) Carter 2005-03-14 08:55:36 UTC
the publishing code uses the location field stored 
in the ntprinters.tdb db.  This is by design.  
Closing this on as later.  Patches welcome, but there 
are more pressing things at the moment.
Comment 3 Jens Enßen 2007-02-07 06:44:00 UTC
Hi Jerry,

We got the same "problem" as Justin, but we use version 3.0.23c of Samba. How long does it takes for fixing this bug?

We need this function to search printer in the active directory!

Can you give me a short statement?

Greetings Jens