Bug 9578 - Add extra printer attributes to published AD object
Summary: Add extra printer attributes to published AD object
Status: ASSIGNED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: printing (show other bugs)
Version: unspecified
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---
Assignee: David Disseldorp
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 11:39 UTC by David Disseldorp
Modified: 2020-09-08 11:55 UTC (History)
7 users (show)

See Also:


Attachments
AD attributes for 2k12 "HP Color LaserJet CP6015 PCL6" shared printer (2.12 KB, text/plain)
2013-01-21 17:33 UTC, David Disseldorp
no flags Details
spoolss info2 structure for 2k12 "HP Color LaserJet CP6015 PCL6" shared printer (50.00 KB, text/plain)
2013-01-21 17:34 UTC, David Disseldorp
no flags Details
WIP: Unfinished patch (2.17 KB, patch)
2013-01-22 10:04 UTC, David Disseldorp
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Disseldorp 2013-01-21 11:39:31 UTC
As suggested by Franz Pfoertsch...

Samba currently attaches far fewer attributes to Printer objects published in Active Directory than those published by Windows.
Attributes such as colormode, duplex, papersize, etc. should be added.
Comment 1 David Disseldorp 2013-01-21 11:45:04 UTC
These attributes can all be obtained via the info2->devmode structure in nt_printer_info_to_mods(), it should just be a matter of finding the correct attribute strings.

http://blogs.technet.com/b/askperf/archive/2009/05/05/printing-and-active-directory.aspx
Comment 2 David Disseldorp 2013-01-21 17:19:43 UTC
Looking through the MS-RPRN and MS-AD3 documentation, it appears the relationship between published printer AD attributes the device-mode data is far from 1:1.

Printer device-mode data mostly corresponds to the current printer settings, whereas many AD attributes corresponds to feature support or limits.
Comment 3 David Disseldorp 2013-01-21 17:33:10 UTC
Created attachment 8458 [details]
AD attributes for 2k12 "HP Color LaserJet CP6015 PCL6" shared printer
Comment 4 David Disseldorp 2013-01-21 17:34:31 UTC
Created attachment 8459 [details]
spoolss info2 structure for 2k12 "HP Color LaserJet CP6015 PCL6" shared printer
Comment 5 David Disseldorp 2013-01-22 10:04:09 UTC
Created attachment 8464 [details]
WIP: Unfinished patch
Comment 6 Franz Pförtsch 2013-01-25 17:49:49 UTC
do you remember:
http://gitweb.samba.org/?p=samba.git;a=blob_plain;f=examples/printing/prtpub.c;hb=v3-6-stable

a lot of work seems do be done at prtpub.c .

regards
Franz
Comment 7 Björn Jacke 2019-12-05 07:43:36 UTC
David, any news on this wip fix that you started back then?
Comment 8 David Disseldorp 2019-12-05 13:38:50 UTC
(In reply to Björn Jacke from comment #7)
> David, any news on this wip fix that you started back then?

No, I haven't revisited the attached patch.
Comment 9 Björn Jacke 2020-09-07 15:12:51 UTC
*** Bug 9771 has been marked as a duplicate of this bug. ***