summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_spoolss_nt.c
AgeCommit message (Collapse)AuthorFilesLines
2008-11-24Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS!Volker Lendecke1-19/+22
2008-11-24Convert delete_driver_files to use create_conn_structVolker Lendecke1-4/+6
Jerry, please check!
2008-11-24Convert get_correct_cversion to use create_conn_structVolker Lendecke1-1/+1
Jerry, please check!
2008-11-24Convert move_driver_to_download_area to use create_conn_structVolker Lendecke1-1/+2
This removes a use of struct current_user and the vuid The become_user() here is unnecessary, within the spoolss handling code we have switched to the authenticated pipe user anyway. Jerry, please check!
2008-11-15s3-spoolss: fix enumports segfault (another malloc vs. talloc candidate).Günther Deschner1-3/+3
Guenther
2008-11-01Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij1-11/+11
2008-10-23Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij1-2/+2
otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
2008-10-23Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTSJelmer Vernooij1-1/+1
previously present in Samba 3.
2008-10-14Use GUID_string rather than smb_uuid_string().Jelmer Vernooij1-1/+1
2008-10-12Use common util_file code.Jelmer Vernooij1-9/+9
2008-08-14Fix coverity CID: 594. Resource leak on error path.Jeremy Allison1-2/+4
Jeremy. (This used to be commit 1f38b9963c4ec0d73da496a72ba4ee74d8d581c9)
2008-07-20Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke1-1/+2
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
2008-07-02Canonicalize servername in the printer functions to remove leading '\\' ↵Jeremy Allison1-54/+59
characters. Ensure we always return consistent names. Jeremy. (This used to be commit fc2178b04743d2f94be7b489b793fc67826557ac)
2008-06-28Fix a file descriptor leak in add_port_hookVolker Lendecke1-4/+1
This was probably cut&paste from add_printer_hook which further down has the unconditional close(fd). In add_port_hook() we're not interested in the output of 'addport command', so don't create the out fd. (cherry picked from commit 0c5ca2127ac6e3c71e369242376d27429c3aee5e) (This used to be commit 9fe09398b79ae7c5e78182112a8cd2c9b5f99ad3)
2008-06-26Fix valgrind errors in _spoolss_addprinterdriverVolker Lendecke1-0/+11
Jerry, this was dropped as part of your SVN r15309 (037f9f83). Can you please check? Thanks, Volker (cherry picked from commit 5aa2411f0b3720b790439359a2dadb23008e936e) (This used to be commit 8e7effd58f7790d6e71e38c990f6cb05456e47e1)
2008-06-26Change print_access_check to take auth_serversupplied_info instead of ↵Volker Lendecke1-9/+10
current_user Reason: This is the main user of p->current_user which I would like to remove (This used to be commit fd43059b3dfa8cdac9814de1c76f963ba5de9bcb)
2008-06-24Remove "conn" from pipes_structVolker Lendecke1-3/+2
For spoolss, we need the client's IP address (This used to be commit 64a4dfaa826cf9319ef3f5c65023352bf8af539e)
2008-05-25Remove the reference to current_user_info from share_access.cVolker Lendecke1-6/+10
This required to pass around the domain a bit (This used to be commit 17b0db20d28d1b737c5e86b78106657e8ca5ce9c)
2008-05-06Fix a memleak in construct_printer_info_7()Volker Lendecke1-2/+5
Also fix a "ignoring asprintf result" warning (This used to be commit 64d21f39636019d6a17f84efc6fb9e61e67a235e)
2008-04-24The first of Martin Zielinski <mz@seh.de> Vista printing patches.Jeremy Allison1-3/+6
Jerry will test and should get into 3.2 final (and the next 3.0.x release). Jeremy. (This used to be commit 3fc1ab210b8772ee9f867499c0b1a7bb4bcdd285)
2008-04-20Introduce rpc_pipe_np_smb_conn()Volker Lendecke1-1/+1
This abstracts away all references to rpc_pipe_client->cli, the only reference is now in cli_pipe.c. (This used to be commit c56e1c08cef107ff33a34346ceeca3475a102b19)
2008-04-20Remove a redundant reference to rpc_pipe_state->cli from srv_spoolssVolker Lendecke1-4/+0
This assignment is done in cli_rpc_pipe_open called from cli_rpc_pipe_open_noauth already. (This used to be commit 7331c4c2781bf7904942c119f1a8de8eda00ae7e)
2008-04-04Fix bug #5372. With a large CUPS installation with a remote server, contactingJeremy Allison1-1/+7
the server when searching for a name for the location and comment fields can take so much time the client times out. When searching for a name we don't use these fields anyway, so add a function get_a_printer_search() which doesn't contact the CUPS server. Jeremy. (This used to be commit 92d9f20852d5384e92a93dd0b051034718840ca8)
2008-03-17Coverity fixesMarc VanHeyningen1-1/+5
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke1-10/+4
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-10Fix return values for invalid printers. Found by kblinJeremy Allison1-5/+14
spoolss test. Jeremy. (This used to be commit bb8c044d425cf62b76e487103c8fb0b6cd4c83c2)
2007-11-29Remove the explicit TALLOC_CTX * from cli_struct.Jeremy Allison1-3/+9
Make us very explicit about how long a talloc ctx should last. Jeremy. (This used to be commit ba9e2be2b5a59684e854609f9d82ea1633448c62)
2007-11-27Remove pstring from srv_spoolss_nt.c. All gone from rpc_server/*.cJeremy Allison1-232/+306
Jeremy. (This used to be commit b5a2a1e3f82a0d319fc9a1d76f5166150680f4d4)
2007-11-27Fix old cut-and-paste bug where the wrong field was being written to.Jeremy Allison1-2/+2
Jerry please check. Jeremy. (This used to be commit 6a556fd73ac8c247c15df664f7910f8688abfdbc)
2007-11-27Whitespace cleanup.Jeremy Allison1-1037/+1035
Jeremy. (This used to be commit 3052172d2bfe9d787777525e90816394aac2dd54)
2007-11-27Remove some staticsVolker Lendecke1-1/+2
(This used to be commit 1fab16ffb888cd4ec18e52d9da33976a67a5d104)
2007-11-08Remove more fstring/pstring bad useage. Go talloc !Jeremy Allison1-6/+6
Jeremy. (This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-10-24This is a large patch (sorry). Migrate from struct in_addrJeremy Allison1-12/+18
to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-40/+40
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison1-2/+2
IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-174/+87
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25534: Apply some constVolker Lendecke1-1/+1
Why? It moves these structs from the data into the text segment, so they will never been copy-on-write copied. Not much, but as in German you say "Kleinvieh macht auch Mist...." (This used to be commit 0141e64ad4972232de867137064d0dae62da22ee)
2007-10-10r25294: Tidy up callers of unistr2_to_ascii() to pass sizeof(target_area) toMichael Adam1-27/+27
the maxeln parameter instead of sizeof(target_area) - 1 (or even sizeof(fstring) - 1 in some places. I hope these were really all there were. Michael (This used to be commit 9a28be220df622322857dfe102fa35e108f932dc)
2007-10-10r24809: Consolidate the use of temporary talloc contexts.Volker Lendecke1-3/+3
This adds the two functions talloc_stackframe() and talloc_tos(). * When a new talloc stackframe is allocated with talloc_stackframe(), then * the TALLOC_CTX returned with talloc_tos() is reset to that new * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse * happens: The previous talloc_tos() is restored. * * This API is designed to be robust in the sense that if someone forgets to * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and * resets the talloc_tos(). The original motivation for this patch was to get rid of the sid_string_static & friends buffers. Explicitly passing talloc context everywhere clutters code too much for my taste, so an implicit talloc_tos() is introduced here. Many of these static buffers are replaced by a single static pointer. The intended use would thus be that low-level functions can rather freely push stuff to talloc_tos, the upper layers clean up by freeing the stackframe. The more of these stackframes are used and correctly freed the more exact the memory cleanup happens. This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and lp_talloc_ctx (did I forget any?) So, never do a tmp_ctx = talloc_init("foo"); anymore, instead, use tmp_ctx = talloc_stackframe() :-) Volker (This used to be commit 6585ea2cb7f417e14540495b9c7380fe9c8c717b)
2007-10-10r24316: Fix an uninitialized readVolker Lendecke1-0/+1
Jerry, please check this! Thanks, Volker (This used to be commit db1b89072c3f214c3cb4be844cd7b417e5361615)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23758: Fix Coverity id 385Volker Lendecke1-2/+7
(This used to be commit 4d9f627cc8081307da3f84f784602533bd20c1e6)
2007-10-10r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke1-2/+2
doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6)
2007-10-10r23015: Make message_(de)register static to messages.cVolker Lendecke1-10/+14
(This used to be commit a8082a3c7c3d1e68c27fc3bf42f3d44402cc6f9f)
2007-10-10r22954: More messaging_registerVolker Lendecke1-8/+16
(This used to be commit 9b8df24107ffe3016031e5257c5680689f061886)
2007-10-10r22911: Pass a messaging_context to message_send_allVolker Lendecke1-2/+4
(This used to be commit cc92ce665dcfe9054d09429219883b18a4cab090)
2007-10-10r22895: Convert some more calls from message_send_buf to messaging_send_bufVolker Lendecke1-4/+6
(This used to be commit c8b98273406242a89a7e5d1fb5d79120ebe5822a)
2007-10-10r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke1-2/+2
connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker (This used to be commit e43e94cda1ad8876b3cb5d1129080b57fa6ec214)
2007-10-10r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke1-3/+3
patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker (This used to be commit 0ad4b1226c9d91b72136310d3bbb640d2c5d67b8)