summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_printer.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r5547: Fix compile warning.Günther Deschner1-1/+1
Guenther (This used to be commit a5e215650e09f087f8aede96475bd26649aa244e)
2007-10-10r5546: Fix some comments in "net rpc printer migrate settings"Günther Deschner1-14/+5
Guenther (This used to be commit 67552103ee77013d08e06ed651f6ca6b3b76813e)
2007-10-10r5541: Fix crash bug in the client-spoolss enumdataex-call.Günther Deschner1-1/+1
With Windows2003 it's perfectly legal to receive no data when querying a value-less subkey. Found while migrating printer settings. Guenther (This used to be commit 3e04def03377b2eae2987c87b18ccadf5b48a6fe)
2007-10-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-4/+4
allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10r3880: Tidy up some unused/shadowed variable usage.Jeremy Allison1-4/+5
Jeremy. (This used to be commit 1fd1a98782c3ca7171428b62336936aef4c6685b)
2007-10-10r2942: Add client-side support of triggering ads printer publishing over msrpcGünther Deschner1-0/+188
setprinter calls inside the net-tool. This is usefull to mimic the same queries a windows-client does. At least win2k returns WERR_IO_PENDING when printer is published via setprinter, samba returns WERR_OK but this does not hurt. Guenther (This used to be commit 69b745fb98b8054d1f52e8a3fe3b933fb04336db)
2007-10-10r2852: Oh. Allow to migrate win2k3/xp-drivers as well.Günther Deschner1-0/+1
Thanks to Bjoern Jacke for his moral support :) Guenther (This used to be commit ab875d3ecf3a80f5648432f7f4573f57442e6698)
2007-10-10r2837: Fix printer-migration w.r.t. to new naming-convention forGünther Deschner1-40/+37
policy-handles. Also remove some unused vars. Guenther (This used to be commit 5181c1b2192d1802616e8c30cd9458c00a306a46)
2007-10-10r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid ofTim Potter1-1/+1
'..' from all #include preprocessor commands. This fixes bugzilla #1880 where OpenVMS gets confused about the '.' characters. (This used to be commit 7f161702fa4916979602cc0295919b541912acd6)
2007-10-10r2821: Adding "Windows x64" as architecture string and driverdir "x64" for theGünther Deschner1-1/+2
64bit AMD platform. (This used to be "Windows AMD64" and "AMD64" in one of the release candidates of SP2 for Windows XP. AMD64 is obviously still supported but not documented.) Guenther (This used to be commit cc5892f0411b8eb5daebe746164a2cf21d3d4c68)
2007-10-10r2476: now that PRINTER_ATTRIBUTE_PUBLISHED does not get reset anymore, migrateGünther Deschner1-4/+13
the publishing-state for migrated printers as well. Therefor added client-side-support for setprinter level 7. Next will be a "net rpc printer publish"-command (just for completeness). Guenther (This used to be commit 224920738fdc65ef170152062177421cfed85bbf)
2007-10-10r2080: Remove last traces of static migration to localhost. Needed to allow aGünther Deschner1-10/+10
local netbios-alias bound to non-loopback interface as a migration target. It's now possible to migrate printers|shares|files from Server A to Server B while running the net-command on client C. Guenther (This used to be commit 0cfd2866dfe5e959ede169a77c39480790300de3)
2007-10-10r2079: Clear the publish-bit from the attributes-mask when migratingGünther Deschner1-0/+6
printer-settings. publishing-info is not handled yet. Guenther (This used to be commit 1d76adb93c98857ed3460db241847e423c021a99)
2007-10-10r2022: Add net_copy_fileattr as a separate function to copy just ACLs, attrsGünther Deschner1-101/+198
and timestamps. This makes net_copy_file less complex. Guenther (This used to be commit 43af9e67dd7c0328f214def4b591041e9b69614a)
2007-10-10r1966: further work on and cleanup of the net-migration-tool.Günther Deschner1-31/+72
It's now possible to migrate files preserving dos-attributes and correct timestamps. Also added some small docu- and syntax-fixes. Guenther (This used to be commit 0e990582a0416933a8671ca660d22e980f828402)
2007-10-10r1698: fix build.Günther Deschner1-2/+3
guenther (This used to be commit 925e28d0cbd9667bceb0762ef1e429735250c209)
2007-10-10r1692: first commit :)Günther Deschner1-0/+2185
* add IA64 to the architecture table of printer-drivers * add new "net"-subcommands: net rpc printer migrate {drivers|printers|forms|security|settings|all} [printer] net rpc share migrate {shares|files|all} [share] this is the first part of the migration suite. this will will (once feature-complete) allow to do 1:1 server-cloning in the best possible way by making heavy use of samba's rpc_client-functions. all migration-steps are implemented as rpc/smb-client-calls; net communicates via rpc/smb with two servers at the same time (a remote, source server and a destination server that currently defaults to the local smbd). this allows e. g. printer-driver migration including driverfiles, recursive mirroring of file-shares including file-acls, etc. almost any migration step can be called with a migrate-subcommand to provide more flexibility during a migration process (at the cost of quite some redundancy :) ). "net rpc printer migrate settings" is still in a bad condition (many open questions that hopefully can be adressed soon). "net rpc share migrate security" as an isolated call to just migrate share-ACLs will be added later. Before playing with it, make sure to use a test-server. Migration is a serious business and this tool-set can perfectly overwrite your existing file/print-shares. * along with the migration functions had to make I the following changes: - implement setprinter level 3 client-side - implement net_add_share level 502 client-side - allow security descriptor to be set in setprinterdata level 2 serverside guenther (This used to be commit 8f1716a29b7e85baf738bc14df7dabf03762f723)