summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
AgeCommit message (Collapse)AuthorFilesLines
2003-01-21revert accidentally committed changesJim McDonough1-83/+0
(This used to be commit 5d43346761cd120c12766536efb0513994d7bace)
2003-01-21Properly display popt errors. Also fix debug to be -d for consistency with ↵Jim McDonough1-0/+83
other progs. (This used to be commit 97133f7168852dc185dbf4492afcaf4b68180f65)
2003-01-17reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell1-2/+2
(This used to be commit e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c)
2003-01-17This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell1-2/+2
calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing. (This used to be commit b9eff31b1433c81fbff733e194914a40f25e3bda)
2003-01-11A couple more fstring/pstring issues - and move from sizeof(fstring) toAndrew Bartlett1-31/+29
sizeof(var) in slprintf statements, so as to ensure we don't get mixups there. Also remove fstrcpy() into a variable that is about to be printed into anyway. Andrew Bartlett (This used to be commit 9b761237321d475c324a3995fe6f0922550ae995)
2003-01-02BIG patch...Andrew Bartlett1-6/+6
This patch makes Samba compile cleanly with -Wwrite-strings. - That is, all string literals are marked as 'const'. These strings are always read only, this just marks them as such for passing to other functions. What is most supprising is that I didn't need to change more than a few lines of code (all in 'net', which got a small cleanup of net.h and extern variables). The rest is just adding a lot of 'const'. As far as I can tell, I have not added any new warnings - apart from making all of tdbutil.c's function const (so they warn for adding that const string to struct). Andrew Bartlett (This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2002-11-11Add getdata and getdataex commandsJim McDonough1-38/+187
(This used to be commit 101727335fffd4011659bfa9f7f8ab24b641fc4e)
2002-11-09deldriver fixGerald Carter1-6/+11
(This used to be commit f20de1f9b0dcac15fbf968e6d5d5af2fdd5fbda1)
2002-11-08Add enumdataex commandJim McDonough1-0/+80
(This used to be commit 6d1d2849a7b2f99d927ba168ed2d01a879b09e69)
2002-11-08Implement enumdata commandJim McDonough1-2/+85
(This used to be commit a22fdf26fef0cd58c84ca13891a762e3fdc6af8b)
2002-11-08Add enumkey command (EnumPrinterKey api)Jim McDonough1-0/+76
(This used to be commit a2e17d4344f996b64cd9c4f01b6b15c069fde41b)
2002-10-04merge of new client side support the Win2k LSARPC UUID in rpcbindGerald Carter1-24/+24
from APP_HEAD (This used to be commit 38c9e4299845fd77cc8629945ce2d259489f7437)
2002-09-03Fix setprinterdata rpcclient command to use new cli_spoolss_setprinterdataTim Potter1-6/+12
function. Also fixed crash bug - I don't think anyone uses this command anymore... (This used to be commit 82c9bf2a6f03c801e701636aff726090483cea25)
2002-09-03Change JOB_INFO_CTR to return a pointer to an array rather than array of ↵Tim Potter1-2/+2
pointers. (This used to be commit e9b71b354d923b2cd0f028dd197e7ca81339ec3a)
2002-08-27slprintf() takes a size argumentAndrew Tridgell1-1/+1
(This used to be commit 4e142ba3749d2eb45687425ff87c153fb6147056)
2002-08-27Don't try to convert enumprinters name to a unc name.Tim Potter1-2/+6
(This used to be commit e09007dd5d17d5f84aea3c2fed16ce79ba7be1f2)
2002-08-27Pass the object name down to the enum_printers rpc. By default this is theTim Potter1-6/+9
server name and everything works as advertised. See the MSDN doco for details. (This used to be commit d6b10fe9691bfc96d5933c029990c60fd292bdc9)
2002-08-08Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.Tim Potter1-0/+80
(This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)
2002-06-28Proper merge of all the working printing stuff from APPLIANCE_HEAD.Jeremy Allison1-2/+2
Now let's keep this in sync ! Jeremy. (This used to be commit 3603cd4947df2c10df604447dc542932cb9e5d5a)
2002-05-14The cli_spoolss_setprinterdata() function interface changed slightly.Tim Potter1-2/+4
(This used to be commit 79d7bcf42e568b8fe75818c1d2344bff738afd70)
2002-05-07Added cmd_spoolss_enumjobs() function to rpcclient.Tim Potter1-39/+156
The semantics of the src_len argument to rpcstr_pull() seem to have changed breaking most of the spoolss commands in rpcclient. Changed a bunch of 0's to -1's to fix it. (This used to be commit f32e3f2087c44f27bcfc8a8b1c76ee2b29f01dea)
2002-04-02some mergee from SAMBA_2_2. Does compile, but needs some more testing.Gerald Carter1-13/+160
This is an intermediate check-in. More to come.... (This used to be commit 5b9b152971aa635d484cde45413a7880424ee22d)
2002-03-08Swap order of close brace and done: tag to appease AIX compiler. Order ↵Jim McDonough1-1/+1
shouldn't matter for logic...if anyone disagrees whack me over the head and explain why... (This used to be commit 4081ce40dda886aeb01f590f00bfe50e0e4e8ae4)
2002-03-07Cosmetic fixup for enum_printersTim Potter1-2/+5
(This used to be commit bb0ef8bc305da7490a19a6f4efd2aa60bf14aef1)
2002-03-07Fixed a bunch of crash bugs for enumprinters at various info levels.Tim Potter1-24/+35
(This used to be commit d9df00e2b1764619491900b7dbd7d5af34feed1b)
2002-02-25Implemented client side functions for SPOOLSS addform, getform, setform andTim Potter1-13/+150
enumforms. (This used to be commit e69222f0816878e3211e3dedb049de50ca90fed0)
2002-02-20Converted remaining spoolss rpcclient functions to werror/needed/offered.Tim Potter1-52/+60
I couldn't test some of these because I didn't know the right magic arguments to pass to rpcclient (familiar anyone? (-:) so there may be some bugs lurking. (This used to be commit 029e2b307d91171168040e71d2e5d5e0d01b7633)
2002-02-19Converted {cmd,cli}_spoolss_getprinter() to WERROR and offered/neede.Tim Potter1-14/+23
(This used to be commit fccfa034e92bca145b8e0639e405f6af5bb1a50b)
2002-02-19Converted cmd_spoolss_enumprinterdrivers() to use newTim Potter1-13/+14
cli_spoolss_enumprinterdrivers() function. (This used to be commit ae38fcf62c4b9503d4df02761dadb1bb7d166a9c)
2002-01-31Added addform, setform and deleteform commands. The only one I could getTim Potter1-4/+169
to actually work was addform. )-: Removed a whole bunch of calls to werror_to_ntstatus() because there isn't a one-to-one mapping of NTSTATUS values to WERROR values. This function maps WERR_ACCESS_DENIED to NTSTATUS_INVALID_LOCK_SEQUENCE or something silly like that. (This used to be commit 825b5c8bd6d0f114faf3b0fd91eb374cbfb8c8b7)
2002-01-30Removed version number from file header.Tim Potter1-2/+1
Changed "SMB/Netbios" to "SMB/CIFS" in file header. (This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
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)