summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_printer.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-25s3-spoolss: use is_valid_policy_hnd to check for valid policy handles.Günther Deschner1-75/+23
Guenther
2009-02-25s3-spoolss: use rpccli_spoolss_addprinterex wrapper.Günther Deschner1-1/+8
Guenther
2009-02-25s3-net: use rpccli_spoolss_getprinter and rpccli_spoolss_SetPrinter.Günther Deschner1-46/+123
Guenther
2009-02-24s3-net: use rpccli_spoolss_AddPrinterDriver and rpccli_spoolss_getprinterdriver2Günther Deschner1-56/+89
wrapper. Guenther
2009-02-12s3-net: use rpccli_spoolss_SetPrinterDataEx.Günther Deschner1-2/+9
Guenther
2009-02-10s3-rpcclient: use rpccli_spoolss_openprinter_ex helper.Günther Deschner1-3/+4
Guenther
2009-02-09Attempt to fix the buildVolker Lendecke1-4/+4
2009-02-09s3-rpcclient: use srv_name_slash instead of formating servername again and ↵Günther Deschner1-10/+7
again. Guenther
2009-02-09s3-spoolss: use rpccli_spoolss_AddForm in net and rpcclient.Günther Deschner1-11/+17
Guenther
2009-02-06s3-spoolss: use rpccli_spoolss_ClosePrinter.Günther Deschner1-25/+25
Guenther
2008-11-01Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij1-14/+14
2008-10-19Remove silly safe_free() function which is a wrapper around SAFE_FREE().Jelmer Vernooij1-1/+1
Since it's a function it just sets the local pointer to NULL and basically is an equivalent to free(). It also claims it's being used for callbacks but isn't used that way anywhere.
2008-07-21Refactoring: connect_dst_pipe uses ndr_syntax_id instead of pipe_idxVolker Lendecke1-5/+10
(This used to be commit 0f77746f36b98acc5171727fa3fc236af9fd2000)
2008-05-20net: Use true/false instead of True/False.Kai Blin1-74/+74
(This used to be commit a8b567aac3b0e39cfe67fb97167b10312ca5e73a)
2008-05-10net: more whitespace cleanupKai Blin1-255/+255
(This used to be commit ef0184d580500734fc7af51e1c790b075180a3d0)
2008-05-10net: Remove globalsKai Blin1-46/+70
(This used to be commit 1e9319cf88b65a2a8d4f5099a1fe5297e405ed2e)
2008-04-25Move user/domain from rpc_pipe_client to cli_pipe_auth_dataVolker Lendecke1-3/+7
(This used to be commit 42de50d2cd43e760d776694f7b5f003ba51d7f84)
2008-04-20Use rpc_pipe_client->user_name instead of rpc_pipe_client->cli->user_nameVolker Lendecke1-3/+3
Also make sure that rpc_pipe_client->user_name is always talloced. (This used to be commit 3f6c5b99664a75a6f490ee3b6980b89cacf7f579)
2008-04-20Add "desthost" to rpc_pipe_clientVolker Lendecke1-1/+2
This reduces the dependency on cli_state (This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
2007-12-07Remove next_token - all uses must now be next_token_talloc.Jeremy Allison1-6/+6
No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-04Remove pstrings.Jeremy Allison1-84/+166
Jeremy. (This used to be commit e3c02796f8cf49af388741d175c4011825670df0)
2007-11-08Remove more fstring/pstring bad useage. Go talloc !Jeremy Allison1-5/+9
Jeremy. (This used to be commit 2a0173743d2cf615d52278f3dd87cc804abe2d16)
2007-10-24This is a large patch (sorry). Migrate from struct in_addrJeremy Allison1-7/+6
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-33/+33
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-10r24783: Remove unused off_t type.Günther Deschner1-3/+2
Guenther (This used to be commit 85c816c27f2b9d20dfaf411b12ec1803a49574ce)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
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-10r22932: Use the same symbol in sizeof and cast for talloc.Michael Adam1-1/+1
(This used to be commit 550498e68db9305e31da38dbc9c642961418a8b0)
2007-10-10r22588: Make all uses of TALLOC_MEMDUP consistent.Jeremy Allison1-1/+5
Jeremy. (This used to be commit 8ad13718af0ba1fcb10a6f1631b1ed3cb8d11175)
2007-10-10r19991: Sorry for this 2000-liner...Volker Lendecke1-4/+3
The main thing here is a rewrite of srv_winreg_nt.c. The core functionality has moved to registry/reg_api.c which is then usable by the rest of Samba as well. On that way it fixes creating keys with more than one element in the path. This did not work before. Two things that sneaked in (sorry :-) is the change of some routines from NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal. Volker (This used to be commit fea52801de8c7b85c578d200c599475680c5339f)
2007-10-10r19811: Decode REG_MULTI_SZ and REG_BINARYVolker Lendecke1-1/+1
(This used to be commit 679330175185f8504bb5968339dcc7cb20d9140c)
2007-10-10r17316: More C++ warnings -- 456 leftVolker Lendecke1-2/+2
(This used to be commit 1e4ee728df7eeafc1b4d533240acb032f73b4f5c)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-10/+15
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r14416: Remove deadcode. Coverity #198.Jeremy Allison1-11/+1
Jeremy. (This used to be commit 7fc61f5a63c982cfd0fbe1838979ba7be8f69fca)
2007-10-10r13864: Some cleanup and the samr set security object function client-side.Günther Deschner1-130/+0
Guenther (This used to be commit 0ae3fddf95a95ec8a2f4d52e1276c1721b33ddfd)
2007-10-10r12986: Use d_fprintf(stderr, ...) for any error message in net.Lars Müller1-12/+12
All 'usage' messages are still printed to stdout. Fix some compiler warnings for system() calls where we didn't used the return code. Add appropriate error messages and return with the error code we got from system() or NT_STATUS_UNSUCCESSFUL. (This used to be commit f650e3bdafc4c6bcd7eb4bcf8b6b885b979919eb)
2007-10-10r10656: BIG merge from trunk. Features not copied overGerald Carter1-246/+292
* \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
2007-10-10r9739: conver the reg_objects (REGSUBKEY_CTR & REGVAL_CTR) to useGerald Carter1-17/+20
the new talloc() features: Note that the REGSUB_CTR and REGVAL_CTR objects *must* be talloc()'d since the methods use the object pointer as the talloc context for internal private data. There is no longer a regXXX_ctr_intit() and regXXX_ctr_destroy() pair of functions. Simply TALLOC_ZERO_P() and TALLOC_FREE() the object. Also had to convert the printer_info_2->NT_PRINTER_DATA field to be talloc()'d as well. This is just a stop on the road to cleaning up the printer memory management. (This used to be commit ef721333ab9639cb5346067497e99fbd0d4425dd)
2007-10-10r9076: fix two other issues invented along theGünther Deschner1-1/+1
cli_spoolss_enumprinterkey-changes. Guenther (This used to be commit db8fce2e05bf1981866a7737703ad414ea91febc)
2007-10-10r8911: cosmetic fixes.Günther Deschner1-9/+11
Guenther (This used to be commit bf67a8611491ed748c6975787ce2f0572586a3c6)
2007-10-10r8654: merging cli_spoolss_XX() updates from trunkGerald Carter1-53/+7
(This used to be commit cd961e50a3029898868d21263ccacb7d5f1f07b9)
2007-10-10r8592: I'm pretty sure this should be != instead of =!. Bugzilla #2893.Tim Potter1-1/+1
(This used to be commit 26539ddd7290860831e0bda62e1126945420b06f)
2007-10-10r7609: Move top level dir handling in from of the loop. This makes the codeLars Müller1-2/+1
much straither. copy_top_level_perms() is jra's work. I modified the copy_top_level_perms() function to use the copy_clistate. And I don't forget trunk. Lars (This used to be commit 2c68568e5232c057d4f76f4bb044c54d18272602)
2007-10-10r7607: Some minor fixes (typos, const)Günther Deschner1-8/+5
Guenther (This used to be commit 11504681861c9c8b509589d6d22551202d98e390)
2007-10-10r7512: Fix net share migrate files to also migrate the ACLs of the top levelLars Müller1-1/+2
dir of a share. Till now we excluded '.' and '..' in general. For the fix the information about top or lower level dir is stored in the copy_clistate. src and dst share are now also part of this struct and we only pass a pointer to the struct to the functions. This bug was found by Bill Calero of Novell. Thanks Bill! With this checkin no new functionality was added. But the copy_clistate already knows about a mode. Later beside the migrate an additional report mode will be added. This changes are coordinated with Günther <gd>. Lars (This used to be commit 506aaefa3716c7683eef9afe0d1bb5b6e2533c4b)
2007-10-10r6488: net rpc printer migrate should not try to set stuff that's not there. ↵Volker Lendecke1-16/+28
This fixes two segfaults. Thanks to Karolin Segger <ks@sernet.de> to find the bug and test the patch. Volker (This used to be commit 5fa5454218acf9975578dee1386d530f09ac7339)
2007-10-10r5971: Check for the correct cli-struct when copying files.Günther Deschner1-1/+1
Good catch from Lars Mueller <lmuelle@suse.de>. Guenther (This used to be commit 90e2383bc50e8312ad37f5869630130e0cd6ae78)
2007-10-10r5547: Fix compile warning.Günther Deschner1-1/+1
Guenther (This used to be commit a5e215650e09f087f8aede96475bd26649aa244e)
2007-10-10r5546: Fix some comments in "net rpc printer migrate settings"Günther Deschner1-14/+5
Guenther (This used to be commit 67552103ee77013d08e06ed651f6ca6b3b76813e)
2007-10-10r5541: Fix crash bug in the client-spoolss enumdataex-call.Günther Deschner1-1/+1
With Windows2003 it's perfectly legal to receive no data when querying a value-less subkey. Found while migrating printer settings. Guenther (This used to be commit 3e04def03377b2eae2987c87b18ccadf5b48a6fe)