svn commit: samba r1101 - branches/SAMBA_3_0/source/rpcclient

Gerald (Jerry) Carter jerry at samba.org
Thu Jun 10 14:18:30 GMT 2004


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

vlendec at samba.org wrote:
| Author: vlendec
| Date: 2004-06-10 13:07:44 +0000 (Thu, 10 Jun 2004)
| New Revision: 1101
|
| Modified:
|    branches/SAMBA_3_0/source/rpcclient/cmd_spoolss.c
| Log:
| Implement 'rpcclient setprintername'.
|
| Thanks to Guenther Deschner <gd at sernet.de>.
|
| This needs to be generalized somewhat. Jerry, which of
| the parameters in the printer_info_2 struct are settable
| via cli_spoolss_setprinter?

Anything can be set via SetPrinter().  The only things we
sanitize now are done in check_printer_ok() on the server.
(i.e. sharename, portname & server name IIRC).

However, the problem is knowing what valid values are for
a given driver.  For example, I would not suggest setting
the devmode unless you have a known valid devmode for that
printer driver.

There should probably be a set of routines such as

set_printer_info_2_printername()
set_printer_info_2_driver()
....





cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAyG22IR7qMdg1EfYRAvhZAKCjq6NF+eYEPtDDVQPvQmuNkUsmiwCg3a9P
KrG7iCbe01AB7gSt2cijXWk=
=4qAq
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list