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. http://blogs.technet.com/b/askperf/archive/2009/05/05/printing-and-active-directory.aspx
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: 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
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: 8fbda54e4d075fc49f024bc1faa95e9760386e53