Bug 9578 - Add extra printer attributes to published AD object
Add extra printer attributes to published AD object
Status: ASSIGNED
Product: Samba 4.0
Classification: Unclassified
Component: printing
unspecified
All All
: P5 enhancement
: ---
Assigned To: David Disseldorp
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-21 11:39 UTC by David Disseldorp
Modified: 2013-01-25 17:51 UTC (History)
4 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