summaryrefslogtreecommitdiffstats
path: root/source/include/rpc_spoolss.h
Commit message (Collapse)AuthorAgeFilesLines
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-13/+130
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-59/+196
| | | | Jeremy.
* Syncup getting ready for release.Jeremy Allison2001-07-061-2/+36
| | | | Jeremy.
* merge from HEAD for new cli_*() interface for client sideGerald Carter2001-03-191-5/+1
| | | | RPCs
* Correctly marshall "POLICY_HND" structs accross all uses.Jeremy Allison2001-03-071-2/+0
| | | | Jeremy.
* include/rpc_spoolss.h: Added JOB_STATUS_XXX defines.Jeremy Allison2001-02-231-0/+14
| | | | | | | | | | | | | include/smb.h: Added LPQ_xx enums to correspond with the NT JOB_STATUS_XXX. We need these to be different as we're storing LPQ_xx enums in the tdb already. rpc_server/srv_spoolss_nt.c: Don't need to return status strings as we're now returning status codes. smbd/lanman.c: Change the RAP status codes to have "RAP" in the name. printing/printing.c: Keep track of the status of a job. Allow a job to be deleted from one smbd when being submitted by another. Made logic in mutex clearer. Jeremy.
* Merge with fixes from appliance-head.Jeremy Allison2001-01-181-1/+1
| | | | Jeremy.
* Big merge to sync up appliance-head and 2.2.Jeremy Allison2001-01-081-13/+7
| | | | Jeremy.
* Added JF's print spooler notification code. Too good to miss for 2.2.x :-).Jeremy Allison2000-09-261-2/+26
| | | | Jeremy.
* in a printer_info_6, driver version is 64 bits long and there is a 32 bitJean-François Micouleau2000-09-161-2/+4
| | | | | | padding before. J.F.
* Implemented DELETEPRINTERDATA (tested with Gerald's Win32 progs).Jeremy Allison2000-09-091-0/+14
| | | | Jeremy.
* Implemented GETFORM tested and working using Gerald's Win32 test progs....Jeremy Allison2000-09-051-1/+18
| | | | Jeremy.
* Changes from APPLIANCE_HEAD (per Tim Potter):David O'Neill2000-09-011-1/+6
| | | | | | | | | | | | | | | | | | | - make proto - addition of function to convert from errno values to NT status codes (source/lib/error.c) - purge queue done without full access permission will purge only the jobs owned by that user, rather than failing. - unlock job database tdb before sending job to printer - in print_job_start(), ensure that we don't pick a jobid with an existing temporary file that may be owned by another user, as it causes silent failures. - fixes for printer permission checking for NT5 clients (source/include/rpc_spoolss.h, source/printing/nt_printing.c, source/printing/printing.c, source/rpc_server/srv_spoolss_nt.c) - change from uint8 to 'enum SID_NAME_USE' (source/rpc_server/srv_lsa.c) - fixed memory leaks for win95 driver download process (source/smbd/lanman.c) - properly free prs_structs and dacl in testsuite/printing/psec.c
* Implemented DELETEFORM tested using Gerald's Win32 test code :-).Jeremy Allison2000-08-311-1/+14
| | | | Jeremy.
* Implemented AbortPrinter() from Gerald's Win32 test code. Just purge allJeremy Allison2000-08-301-1/+13
| | | | | | possible printjobs from that printer (I think this is correct). Added error code returns for print_queue_XXX() functions. Jeremy.
* added a #define for SPOOLSSGETPRINTERDATAEX. Although we do notGerald Carter2000-08-291-0/+1
| | | | | | | | | support the RPC yte (win2k specific), I added it for documentation purposes. jerry
* yipee!Andrew Tridgell2000-08-281-0/+2
| | | | | | | | | | | | The spoolss AddJob function has an [in,out] buffer not an [in] buffer (despite the comment in the code to the contrary). Also, we must fail this function - not just blindly reply "no problem" as AddJob should always fail on non-local printers. This fixes a bug where the "print test page" failed about half the time. I suspect it will also fix a bunch of other intermittent spoolss bugs where the client (incorrectly) tries to use the AddJob printing interface.
* Tidied up security rights definitions.Jeremy Allison2000-08-101-17/+12
| | | | Jeremy.
* More work on AddPrinterDriver() and AddPrinterEx() client RPC'sGerald Carter2000-08-091-1/+1
| | | | | | | | Also fixed init_unistr() to deal with a NULL source character string. -jerry
* All changes related to rpcclient...Gerald Carter2000-08-081-0/+23
| | | | | | | | | | | | | - 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
* Fixed some more client SPOOLSS functions. The followingGerald Carter2000-07-181-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 All part of the ongoing rpcclient work. Also included a new generic list ADT. Cleaner and simplier than the stuff in util_array.c i think (but then that's why I wrote it). --jerry
* Moved printer ACE mask values from nt_printing.h to rpc_spoolss.hTim Potter2000-07-061-2/+6
|
* Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also someJeremy Allison2000-06-201-2/+1
| | | | | memory fixes. Jeremy.
* parsing code for reply[open|close]printer in preparation of the eventJean-François Micouleau2000-06-101-1/+29
| | | | | | stuff. J.F.
* Back to building. Now to test with insure.Jeremy Allison2000-06-011-1/+1
| | | | | Added some frees needed to stop memory leaks. Jeremy.
* More stuff I cvan't afford to lose. I'm realizing how dependent I amJeremy Allison2000-06-011-1/+1
| | | | | on this bloody CVS link.... Jeremy.
* moved notif_y_table struct to spoolss_nt.c only used there.Luke Leighton2000-05-281-11/+0
| | | | | | #ifdef'd driver-code out with define RELIES_ON_SMBD_SPECIFIC_CODE because spoolssd doesn't link with smbd/*.c (find_service("print$") is not possible).
* security descs in spoolss. needs parse_sec.c nttrans.c broken.Luke Leighton2000-05-271-9/+19
|
* added spool_io_printer_driver_info_level_6()Andrew Tridgell2000-05-121-0/+41
| | | | | | thsi function and the associated header structure were autogenerated using a little awk based code geerator I wroe ths evening. I'll commit that next ...
* added support for deleting printers into the spoolss systemAndrew Tridgell2000-05-021-1/+14
|
* rewrote getprinterdriver level 3, now correctly handle the dependentJean-François Micouleau2000-03-291-10/+6
| | | | | | | | files. A number of memleak fixed some error return values fixed. J.F.
* oops ! forgot smb.h in last commitJean-François Micouleau2000-03-131-0/+12
| | | | | | added info level 1 parsing code for addprinter(ex) J.F.
* parse correctly getprinterdriver2Jean-François Micouleau2000-03-131-3/+4
| | | | | | | | | found a stupid bug in enumprinters fixed some memleaks found a coredump in enumprinterdata getprinterdriverdir responds correctly now. J.F.
* you know, when you do a cvs commit, you _really_ expect it to actually work.Luke Leighton2000-03-101-2/+5
| | | | this explains why j-f wasn't happy.
* getprinter level 0: was to short, found most of the fields, undocumented,Jean-François Micouleau2000-03-101-29/+37
| | | | | | | | | undecoded, nothing in MSDN, but now it works :-) cleanup of error codes. fixed some dfs declarations function. J.F.
* indent went wrong. grr.Luke Leighton2000-03-101-226/+357
|
* Enumprinters level 1: reply *exactly* like an NT serverJean-François Micouleau2000-03-071-0/+1
| | | | | | BTW, found a little memleak in it. J.F.
* changed prs_unistr to parse empty and non-empty strings the same way.Jean-François Micouleau2000-03-061-12/+7
| | | | | | | | | | | | fixed typo in SPOOLSS_SYNT some cleanup of unused functions wrote make_spoolss_enumprinter and make_spoolss_openprinterex for rpcclient as I'm trying to keep in sync the parsing code between HEAD and TNG. Will commit changes to TNG after lunch. J.F.
* added enumprintprocessordatatypesJean-François Micouleau2000-02-261-12/+13
| | | | | | now NT is happy and the "always send data in RAW mode" is checked J.F.
* rewrote enumprinterdata. still a bug in it but reproducing it hard andJean-François Micouleau2000-02-261-3/+4
| | | | | | | | | | borring. I need a client test program urgently!!! rewrote setprinter, doesn't coredump anymore, and no memleak. J.F.
* converted a couple of bzero() to memset()Jean-François Micouleau2000-02-241-22/+74
| | | | | | | | | | | rewrote the printer notify code, so now it's compatible with SP5 and fully dynamic. No more limits on printers and job lists. removed the make_xxx() functions as they are not used and broken fixed a bug in the open handle function. J.F.
* more rewrite ...Jean-François Micouleau2000-02-211-53/+47
| | | | | | comitting before starting on new functions. J.F.
* fix the reply of rpc_alter_contextJean-François Micouleau2000-02-151-48/+50
| | | | | | | | | OpenPrinterEx is now decoding correctly the query most of the EnumXXX use the new_buffer struct. check the (un)marshalling return code. conclusion: still a long way to go. all the client code has to be rewritten, and I still wonder how to implement correctly the notify stuff.
* First commit of the spoolss code to the HEAD branch.Jean-François Micouleau2000-02-071-0/+1441
| | | | | | still needs a lot of cleaning/debuging. J.F.
* 2nd phase of head branch sync with SAMBA_2_0 - this delets all the files ↵Andrew Tridgell1999-12-131-1492/+0
| | | | that were in the head branch but weren't in SAMBA_2_0
* delineation between smb and msrpc more marked. smbd now constructsLuke Leighton1999-12-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pdus, and then feeds them over either a "local" function call or a "remote" function call to an msrpc service. the "remote" msrpc daemon, on the other side of a unix socket, then calls the same "local" function that smbd would, if the msrpc service were being run from inside smbd. this allows a transition from local msrpc services (inside the same smbd process) to remote (over a unix socket). removed reference to pipes_struct in msrpc services. all msrpc processing functions take rpcsrv_struct which is a structure containing state info for the msrpc functions to decode and create pdus. created become_vuser() which does everything not related to connection_struct that become_user() does. removed, as best i could, connection_struct dependencies from the nt spoolss printing code. todo: remove dcinfo from rpcsrv_struct because this stores NETLOGON-specific info on a per-connection basis, and if the connection dies then so does the info, and that's a fairly serious problem. had to put pretty much everything that is in user_struct into parse_creds.c to feed unix user info over to the msrpc daemons. why? because it's expensive to do unix password/group database lookups, and it's definitely expensive to do nt user profile lookups, not to mention pretty difficult and if you did either of these it would introduce a complication / unnecessary interdependency. so, send uid/gid/num_groups/gid_t* + SID+num_rids+domain_group_rids* + unix username + nt username + nt domain + user session key etc. this is the MINIMUM info identified so far that's actually implemented. missing bits include the called and calling netbios names etc. (basically, anything that can be loaded into standard_sub() and standard_sub_basic()...)
* well, i stuffed up the spooler commands.Luke Leighton1999-11-271-35/+28
|
* debugging rpcclient spoolenum and spooljobs commands. oh, did i forgetLuke Leighton1999-11-091-4/+1
| | | | | to mention, there's a spooljobs <printer name> command, and it uses command-line completion? prints out NT print jobs really nicely, too.
* preparation for doing a spoolss enum jobs command. had to rewriteLuke Leighton1999-11-081-2/+2
| | | | spoolss_enumjobs parsing code to do read / writes not just writes.
* added rpcclient spoolenum command. enumerates printers.Luke Leighton1999-11-061-1/+2
| | | | | | spoolss_r_io_enumprinters doesn't decode strings correctly as printer_info_1/2 code has only been written to write structures, not read them.