populating printer location from CUPS

Gerald (Jerry) Carter jerry at samba.org
Fri Mar 16 21:52:36 GMT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Andy,

>>> We were in need to populate printer location information from 
>>> CUPS to Samba and further to AD. Attached patch implements
>>> function transferring the location and comment from CUPS
>>> server to NT_PRINTER_INFO_LEVEL structure. Then the
>>> patch adds call to this function into nt_printer_publish,
>>> but there might be better place for this...
> 
> The better place is to add it to get_a_printer_2() if the
> location field is an empty string.  I'll make that change.
> The modification to print_cups.c looks pretty good to me.

I've committed a slightly modified version in SVN r21861.
The only significant changes was to move the lookup
to get_a_printer_2().  I also followed up with adding it to
get_a_printer_2_default().

Thanks.




cheers, jerry
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+xGkIR7qMdg1EfYRAvIQAKCAQ29nH3rtdyt9fCrmFDXlK/y0uACgsTWY
Xk9UbMVaov8OsDjL5I78/Zo=
=sCbX
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list