summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_spoolss.c
AgeCommit message (Collapse)AuthorFilesLines
2003-12-07Fix comment.Tim Potter1-1/+1
(This used to be commit a999f7f23fc68e51dd04f1c5a2c84f19d5c4a0a5)
2003-11-05Patch from James Henstridge to allow rpcclient adddriver command to specifyTim Potter1-3/+12
printer driver version. Closes bug #514. (This used to be commit c5865e3dfe0166a4714129a3ddfe1c39218e28f0)
2003-10-20Fixed typo spotted by Daniel Jarboe <daniel.jarboe@custserv.com>.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 89d42685b706233ab31734764e2e641834af3675)
2003-09-25Fix for #480. Change the interface for init_unistr2 to not take a lengthJeremy Allison1-2/+2
but a flags field. We were assuming that 2*strlen(mb_string) == length of ucs2-le string. This is not the case. Count it after conversion. Jeremy. (This used to be commit f82c273a42f930c7152cfab84394781744815e0e)
2003-08-19working on fix for BUG #294. Not done yet, but this at least clearsGerald Carter1-3/+15
up some of the false positives in "rpcclient -c getdriver". Also make sure that we ask for version2 and 3 drivers on x86. (This used to be commit 5be51515680da910b623f486108d91f9ea914bd2)
2003-08-07Patch from waider@waider.ie to print out Port Type.Jeremy Allison1-1/+25
Jeremy. (This used to be commit 8516baf58d333a54bcbe1c1a08eee499b3dd2636)
2003-07-03Removed strupper/strlower macros that automatically map to ↵Jeremy Allison1-54/+54
strupper_m/strlower_m. I really want people to think about when they're using multibyte strings. Jeremy. (This used to be commit ff222716a08af65d26ad842ce4c2841cc6540959)
2003-06-23* s/get_dc_name/rpc_dc_name/g (revert a previous change)Gerald Carter1-1/+1
* move back to qsort() for sorting IP address in get_dc_list() * remove dc_name_cache in cm_get_dc_name() since it slowed things down more than it helped. I've made a note of where to add in the negative connection cache in the ads code. Will come back to that. * fix rpcclient to use PRINTER_ALL_ACCESS for set printer (instead of MAX_ALLOWED) * only enumerate domain local groups in our domain * simplify ldap search for seqnum in winbindd's rpc backend (This used to be commit f8cab8635b02b205b4031279cedd804c1fb22c5b)
2003-04-23Merge the 'safe' parts of my StrnCpy patch - many of the users really wantedAndrew Bartlett1-9/+8
a pstrcpy/fstrcpy or at most a safe_strcpy(). These have the advantage of being compiler-verifiable. Get these out of the way, along with a rewrite of 'get_short_archi' in the spoolss client and server. (This pushes around const string pointers, rather than copied strings). Andrew Bartlett (This used to be commit 32fb801ddc035e8971e9911ed4b6e51892e9d1cc)
2003-03-18Merge of waider's rpcclient return type patch.Tim Potter1-117/+114
(This used to be commit fb91bfa7a28f548dcc549f7e09805e4485c83538)
2003-02-25Merge: const fixes.Tim Potter1-33/+42
(This used to be commit a20aba09996e470425a151271237f2d48a8302af)
2003-02-12merge desired_access for open_printer_ex from HEAD, allowing cupsaddsmb toAndrew Bartlett1-1/+1
work again! Andrew Bartlett (This used to be commit 94976a4128ea93606e2719fd06019a1e7eddf61c)
2003-01-29Remove NULL buffer checks before rpcstr_pull() as they're now doneJeremy Allison1-63/+38
inside this function. Merge from HEAD (tpot). Jeremy. (This used to be commit e20cb9ca55e060e03d3f517f1d52ce2bc6982310)
2003-01-14Merge from HEAD:Andrew Bartlett1-31/+29
- fstring/pstring mixups - the detection code that found them (disabled) - a bit of whitespace - a static Andrew Bartlett (This used to be commit 9b70fa868e7d9481f584c83fc4046174e1dedfd9)
2003-01-03Merge from HEAD - make Samba compile with -Wwrite-strings without additionalAndrew Bartlett1-6/+6
warnings. (Adds a lot of const). Andrew Bartlett (This used to be commit 3a7458f9472432ef12c43008414925fd1ce8ea0c)
2002-11-11Add getdata and getdataex commandsJim McDonough1-38/+187
(This used to be commit 1bdd6397516b9f514c04099cf521fe81adad905b)
2002-11-09deldriver fixGerald Carter1-6/+11
(This used to be commit 78ff2cc34aedaf82d965a71e0c9dfdeb86a90fdd)
2002-11-08Add enumdataex commandJim McDonough1-0/+80
(This used to be commit 932a5012731b133d49d1c2d6b28f15e4480ddf53)
2002-11-08Implement enumdata commandJim McDonough1-2/+85
(This used to be commit 33ffe07e053082f5edfd65b43f431a8d09d4ae0e)
2002-11-08Add enumkey command (EnumPrinterKey api)Jim McDonough1-0/+76
(This used to be commit 5bccbbeb59b1574c9c8132ef3e1a090ff539f6e1)
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 1cfd2ee433305e91e87804dd55d10e025d30a69e)
2002-09-25sync'ing up for 3.0alpha20 releaseGerald Carter1-13/+26
(This used to be commit 65e7b5273bb58802bf0c389b77f7fcae0a1f6139)
2002-08-17sync 3.0 branch with HEADJelmer Vernooij1-0/+80
(This used to be commit 6497eb78e87a6ffa4c2c61aa4ef6ecd451821a27)
2002-07-15updated the 3.0 branch from the head branch - ready for alpha18Andrew Tridgell1-4/+6
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-05-07Merge from HEAD:Tim Potter1-39/+156
>Added cli_spoolss_enumjobs() function. >Added cmd_spoolss_enumjobs() function to rpcclient. > >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 dce534d4373cc0f204d82e0876bb94db8dfeb628)
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)