summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2000-07-31More work on rpcclient...Gerald Carter1-23/+68
* Fixed to work with Jeremy's recent changes re: dunamic memory allocation when unmarshalling unistr[2] * included EnumPorts level 1 * more work on AddPrinterEx --jerry (This used to be commit 45fbf31b698d6e754630590034cff712c0a716b1)
2000-07-26Found out that we are crashing spoolss in enumprinterdata.Jean-François Micouleau1-2/+2
So fixed enumprinterdatas in rpcclient to debug the server code, and found that the parsing code was missing 2 prs_align(). We are not crashing NT anymore. :-) J.F. (This used to be commit 883f7402d495182aeff85152216cc8b3cfc18bef)
2000-07-25some initial code for AddPrinterEx() project. Most is ifdef'd outGerald Carter1-1/+115
'cause it's not all written. -jerry (This used to be commit 2c0f6bcc8f926ee9c17de12671075e8a9239bb94)
2000-07-25A rather big change set ! (listed in no particular order)Jean-François Micouleau1-1/+1
- changed the default forms flag to 2 - all short architecture name are uppercased - get_short_archi() is now case unsensitive - the drivers TDB is indexed by archi/version/name - implemented code to move drivers from the upload area to the download area. Someone else need to look at that code. - don't return anymore a default driver if it doesn't exist in the TDB. Instead return an error. - cleaned prs_unistr. - #ifdef out jeremy's new SD parsing in printer_info_2 - removed the unused MANGLE_CODE - #ifdef out the security checking in update_printer() as it doesn't work for me. Zap your ntdrivers.tdb, it won't work anymore. J.F. (This used to be commit ac0a145acc0953a6f362497abbf4dfe70aa522a6)
2000-07-21Added EnumPorts() and fixed up some problemsGerald Carter1-0/+22
with the other spoolss client calls. Also cleaned up output for 'help' command. jerry (This used to be commit 56ce247977c05ef37888c2572e679c44346e5568)
2000-07-20Fixed unitilized secdesc pointer which was causing spoolgetprinterGerald Carter1-2/+2
rpcclient command to fail on shared printers. jerry (This used to be commit c8abc31187dbfe6076277896b029fa11443e43bd)
2000-07-18Fixed some more SPOOLSS functions. The followingGerald Carter1-5/+4
functions work now: - spoolenum - spoolopen - spoolgetprinter - spoolgetprinterdriver Items todo: - track down memory bug with spoolenumdata - fix spoolgetprinterdriverdir - fix spoolgetdata - fix display_job_info_ctr in spooljobs --jerry (This used to be commit 15b35912713557119aba5d0cd59605997d6b5ee9)
2000-07-14adding more spoolss command into rpcclient. They don't all workGerald Carter1-0/+368
currently. More to come later. --jerry (This used to be commit 0faf21662db5b24b7fd57736ea53772e3baca5df)
2000-07-07More rpcclient merge issues:Gerald Carter1-0/+96
* fixes some readline bugs from the merge * first attempt at commands (spoolenum almost works) * no changes to existing functions in HEAD; only additions of new functions. I'll weed out what I can as I go. --jerry (This used to be commit 12e2a21e1bc4c6fa02606d21cea4cb5a8b4d41a9)
1999-12-132nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1-264/+0
that were in the head branch but weren't in SAMBA_2_0 (This used to be commit d7b208786590b5a28618590172b8d523627dda09)
1999-12-08ABOUT TIME!!!!!!!!Luke Leighton1-1/+1
damn, this one is bad. started, at least two days ago, to add an authentication mechanism to the smbd<->msrpc redirector/relay, such that sufficient unix / nt information could be transferred across the unix socket to do a become_user() on the other side of the socket. it is necessary that the msrpc daemon inherit the same unix and nt credentials as the smbd process from which it was spawned, until such time as the msrpc daemon receives an authentication request of its own, whereupon the msrpc daemon is responsible for authenticating the new credentials and doing yet another become_user() etc sequence. (This used to be commit 30c7fdd6ef10ecd35594311c1b250b95ff895489)
1999-11-29renamed PRINTER_HND to POLICY_HND.Luke Leighton1-2/+2
(This used to be commit 8b92be25bd7d630a18c36bcd5d983386d6cd1d53)
1999-11-27well, i stuffed up the spooler commands.Luke Leighton1-61/+50
(This used to be commit 7a696330586b9ad5157b0c1ab249cc66e9accef7)
1999-11-24ok. *whew*. this is the first completed part of the restructure.Luke Leighton1-4/+5
verified that lsaquery, lsalookupsids work, and found some bugs in the parameters of these commands :-) soo... we now have an lsa_* api that has the same arguments as the nt Lsa* api! cool! the only significant coding difference is the introduction of a user_credentials structure, containing user, domain, pass and ntlmssp flags. (This used to be commit 57bff6fe82d777e599d535f076efb2328ba1188b)
1999-11-22another two.Luke Leighton1-5/+9
(This used to be commit b0f8ef6168d04d55d53fc2d02df5f54176e4f893)