summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
AgeCommit message (Collapse)AuthorFilesLines
2002-01-19fixes (asprintf) from 2.2Simo Sorce1-3/+7
(This used to be commit 6b123adda901ff05b0271eeda060297448f64eec)
2002-01-07Converted getprinterdriver to WERROR - it always returns dos error 6Tim Potter1-11/+17
(invalid handle) though. )-: (This used to be commit 7bfd1f35e4e194f8a2f07046e4a6c005c256c05b)
2002-01-06Converted enumprinters and enumports cmd functions to use WERRORTim Potter1-32/+39
values returned from cli functions. They are converted to NTSTATUS codes using the error map functions. Do buffer size loop checks by setting offered = 0 and using the return value of needed in the next call. (This used to be commit 4efbdda3fcfd1fad2f2b8909d250735382497836)
2002-01-06spoolss rpc client cleanup:Tim Potter1-35/+62
- converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS - doc (This used to be commit 248d114f856f1adb76c903b683e0927530771443)
2002-01-03Fixed crash bug in display_print_info_2()Tim Potter1-65/+87
(This used to be commit b70f870cd98e30d0ce74d322391cc79d65c5f838)
2002-01-03Fixed crash bug in display_print_info_1()Tim Potter1-3/+13
(This used to be commit d1564fbf1f4950c12516470d4566efeca3ad79e5)
2001-12-30Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>Tim Potter1-1/+1
(This used to be commit 6b7e9d03cf6093f1108642deddb0f8cc42e59067)
2001-12-11Doing some research into ACLs on the LSA and SAM policy objects.Tim Potter1-52/+0
- added lsaquerysecobj to rpcclient - renamed querysecobj to samquerysecobj - removed duplicated display_sec_acl() code from cmd_spoolss.c and cmd_samr.c and moved it into display_sec.c (This used to be commit 59b2e3f408a5ff22f2d81a927d010a7df5f19f7f)
2001-12-10Added client and server code for the GetPrintProcessorDirectory SPOOLSSTim Potter1-0/+32
rpc. This was supposed to fix a printer driver download bug but it didn't but it seemed a shame to trash all this code so I'm commiting it #ifdef'ed out in case someone needs it one day. (This used to be commit bef43656471741c6c10b12e7516c15de9ae76394)
2001-11-30Renamed sid field in SEC_ACE to trustee to be more in line with MS'sTim Potter1-1/+1
definitions. (This used to be commit 9712d3f15a47155f558d0034ef71fd06afb11301)
2001-11-15FALSE -> FalseTim Potter1-1/+1
(This used to be commit 7c6529c081abe051055be5fbf3016fbea2474752)
2001-10-12Some old stuff hanging around since the CIFS conference. Big cleanup ofTim Potter1-245/+51
rpcclient code. Refactored cmd_* functions to move common mem_ctx and pipe opening stuff up one level. Moved rpcclient.h into rpcclient directory and out of includes/smb.h (This used to be commit a40facba9651f9fb1dcc9e143f92ca298a324312)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-2/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-04it now all compiles - so try enabling it by default and see what explodes on ↵Andrew Tridgell1-92/+69
the build farm (This used to be commit 5bb7e4f0f65edf1db20245f403cbe81833134240)
2001-09-03the next step in our error code handling changeAndrew Tridgell1-3/+3
- added WERROR for win32 error codes - added a configure test for immediate structures still lots to do, so its not enabled by default, but the main structure is there (This used to be commit 24f9ab683dec52587ee56717e821b49c0fa3d70f)
2001-08-27converted another bunch of stuff to NTSTATUSAndrew Tridgell1-31/+31
(This used to be commit 1d36250e338ae0ff9fbbf86019809205dd97d05e)
2001-08-10- avoid possible mem leaks in rpcclient/cmd_*.c (talloc_destroy not performed)Simo Sorce1-0/+10
- ported two rpc back from TNG (WINREG: shutdown and abort shutdown) - some optimizations and changed some DEBUG statement in loadparm.c - changed rpcclient a bit moved from non reentrant next_token_nr to next_token - in cmd_reg.c not sure if getopt will work ok on all platforms only setting optind=0 (This used to be commit fd54412ce9c3504a547e232602d6129e08dd9d4d)
2001-08-10Replaced the duplicate DOS constants with appropriate ones from doserr.h toTim Potter1-5/+5
emphasise the fact that the spoolss pipe returns DOS error codes instead of 32-bit nt status codes. (This used to be commit 5f5ed41ee872d842e944cd2e84a80de714ad4385)
2001-07-25Held a shoot-out between NT_STATUS_NO_PROBLEMO and NT_STATUS_NOPROBLEMO.Tim Potter1-12/+12
According to the incorruptible judges find and grep, the latter won. Mmm - procrastination. (-: (This used to be commit 2e339403605177b15d5185a8fdd1b06f3f043168)
2001-07-20Started adding some help/usage info for rpcclient commands.Tim Potter1-16/+18
(This used to be commit 37052a1bcc5cd049918c3d5ac4c41c3a669290af)
2001-07-04The big character set handling changeover!Andrew Tridgell1-46/+42
This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation. (This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-05-31merge from 2.2Gerald Carter1-1/+1
(This used to be commit 7e23ed48908cf396610d26efda9f54d5f5f0e83c)
2001-05-24Fixed compiler warning.Tim Potter1-1/+0
(This used to be commit 6e0805c191d7434366e4a8d752b6e34656232371)
2001-05-18merge from 2.2 (deleteprinterdriver RPC)Gerald Carter1-8/+15
(This used to be commit 515caaf7b448e55206433a9ca04fb5078f91cde2)
2001-05-17merge from 2.2 DeletePrinterDriver() server side stud comingGerald Carter1-0/+48
in separate commit after I get it working in 2.2. (This used to be commit 09506ac0e64b84d73e3b8fdd4942fa52dba6060f)
2001-05-04Tidyup of server vs servername, username vs user to remove compilerTim Potter1-24/+24
warnings. (This used to be commit d4f6ce9422ae53fb5b0cc72407131d5a9e1bd36d)
2001-04-28rpcclient merge from 2.2 (including Jeremy's non-void return fix)Gerald Carter1-31/+192
(This used to be commit 0a6ceed279cc8111008b21f75c6791efbd993f4b)
2001-04-08Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison1-6/+6
Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-03-19merge from 2.2 (reorder commands in array)Gerald Carter1-1/+1
(This used to be commit 1d14d812ea44d96d0fd170091b489b0580226da6)
2001-03-15addprinter and adddriver are working now :-)Gerald Carter1-20/+292
(This used to be commit 0cb7639cef4a1ba0d56d7e58bd7e03343cbf229d)
2001-03-15added getdriverdir and cleaned up the PRINTER_DRIVER_CTR structGerald Carter1-1/+61
(This used to be commit 5d321673850e1e28e1bee4093705d7e319421687)
2001-03-15added getdriver and enumdrivers commands. Also fixedGerald Carter1-26/+355
enumprinters so that it works as well. Couple of other misc fixes while we're working on rpcclient. (This used to be commit 83d6bc4454f0cda581d26de32a4fcaad42431b34)
2001-03-15more updates. several spoolss commands added as placeholdersGerald Carter1-9/+77
to be filled in one at a time. (This used to be commit 6aaac3766324302b995b5a55876bf2ab74af1ff8)
2001-03-14set of changes in the beginning of bringing rpcclient changesGerald Carter1-45/+24
back to working order. The main change is that the cli_*() RPC functions from libsmb/*.c now should accept a struct cli_state*. The reason for this is that rpcclient should establish the connection to the server at startup so that it is not necessary to keep the clear test or password hash in memory for each command. enumports and enumprinters now works as well. lsa* functions have been tested. SAMR calls may or may not work (one of the core dumps I know), but it compiles :-) jerry (This used to be commit d98ac8852ae6b39b6fcff92c346ba56d9e63c518)
2001-01-12Pass correctly formatted args to cli_spoolss_open_printer_ex()Tim Potter1-2/+7
(This used to be commit 635db9b6015a422505a5d8507c44e12f146597bc)
2001-01-12Memory leak fixes spotted by insure.Tim Potter1-1/+6
(This used to be commit 8072ee62b082df5d06459667615bb3b78461ec0a)
2001-01-12Use MAXIMUM_ALLOWED_ACCESS when doing a cli_spoolss_open_printer_ex()Tim Potter1-1/+1
(This used to be commit 42674cc616dccbef090254a2c4a3ab0b4360e547)
2001-01-11Start of a rewrite of rpcclient based on the libsmb rpc client routines.Tim Potter1-782/+344
Currently there are a small selection of lsa, samr and spoolss functions implemented. More to follow... (This used to be commit 9a953514f2a2cfd3c43105dd6203bc3e36aff1b1)
2000-12-08Modified argc passed to rpc_client cmd_* functions to include argv[0].Tim Potter1-12/+12
Gerald, could you check to see I haven't introduced any bugs into rpcclient/cmd_spoolss.c? (This used to be commit 77b0bda4df3217cd186d5b8f902a50f35346d98d)
2000-09-12spoolgetprinterdriver now returns "Windows NT x86" and "Windows 4.0"Gerald Carter1-1/+9
driver information. Will merge into TNG. jerry (This used to be commit ae7dd77c2495d5e17f6e8da94afbe8cab3e773bb)
2000-08-29added -P (for no prompt) and -A <authfile> optionsGerald Carter1-11/+10
jerry (This used to be commit 2d95c38f7e65a0379cbaadd57b8eb41d830b5a6b)
2000-08-18fixed an off by one error where I was tromping on memoryGerald Carter1-1/+1
when initializing a driver_info_3 struct. See spoolss_addprinterdriver() jerry (This used to be commit 4fad1fc28a0396443e4723d2065860feb283a785)
2000-08-12FIxed some unmarshalling problems with relstr and unistr arraysGerald Carter1-2/+5
jerry (This used to be commit ce2d20395ae3d41d55030427f4b7b44ce87c605e)
2000-08-10Working on spoolss_getprinterdriver() as it does not display all theGerald Carter1-0/+6
dependentfiles. jery (This used to be commit 206565368b887ba83791efe018f24175e6f31137)
2000-08-10Needed to add the SHARED attribute bit when creating a printerGerald Carter1-7/+9
on a Samba host. Also needed to add an option to pass the share name (printer name) on the command line. And fixed the checking of the return code for spoolss_r_addprinterex() jerry (This used to be commit 880e81161640cd38540b06d982c592cbada51d40)
2000-08-09More work on AddPrinterDriver() and AddPrinterEx() client RPC'sGerald Carter1-44/+40
Also fixed init_unistr() to deal with a NULL source character string. -jerry (This used to be commit 8ecd5dd52a6bd867f5d117352048ee43ce7254d9)
2000-08-09Fixed AddPrinterDriver()Gerald Carter1-1/+0
jerry (This used to be commit 39d025693eadf4ca1c4fe17dd9110bb8a647f361)
2000-08-08All changes related to rpcclient...Gerald Carter1-4/+235
- cleaned up some code - Fixed a few memory leaks of my own making - Add AddPrinterDriver(); I'm missing some of the semantics here as the call is done correctly, but I'm not getting all the information right in the DRIVER_INFO_3 struct I think. Will work on it tomorrow some more... --jerry (This used to be commit 3bf9a29f34ee4ade5180c5a0b0b9ff4aca7f0f08)
2000-08-04spoolss_addprinterex() was adding the printer and returning theGerald Carter1-3/+3
correct handle, but was deleting the connection to the server. Doh!! --jerry (This used to be commit 8e5e929561a1ae954bd60f7bd745d697438f835c)
2000-08-04clunky support for calling AddPrinterEx(). The code currently reportsGerald Carter1-8/+10
that the call failed, but the printer shows up on the remote NT client. (note this is the client side call). I've botched the return value somewhere and will fix that today. jerry (This used to be commit e15d9befd24cf5f3410c4be819b2a1fcf68048fb)