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 .
David, any news on this wip fix that you started back then?
(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.
*** Bug 9771 has been marked as a duplicate of this bug. ***
This bug was referenced in samba master: