The Samba-Bugzilla – Bug 9578
Add extra printer attributes to published AD object
Last modified: 2013-01-25 17:51:38 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.
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.
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.
Created attachment 8458 [details]
AD attributes for 2k12 "HP Color LaserJet CP6015 PCL6" shared printer
Created attachment 8459 [details]
spoolss info2 structure for 2k12 "HP Color LaserJet CP6015 PCL6" shared printer
Created attachment 8464 [details]
WIP: Unfinished patch
do you remember:
a lot of work seems do be done at prtpub.c .