1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

281 Commits

Author SHA1 Message Date
Günther Deschner
d77c456757 s3-rpcclient: print more infolevels in printer and driver info levels.
Guenther
2009-05-06 10:21:31 +02:00
Michael Adam
8185d31fb0 s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob
Michael
2009-04-27 11:21:03 +02:00
Jelmer Vernooij
f4195183a4 s3: Use common security_descriptor_equal(). 2009-04-21 18:17:40 +02:00
Günther Deschner
fc056e561b s3-rpcclient: add set_job command.
Guenther
2009-04-13 23:45:52 +02:00
Günther Deschner
c9a388348a s3-rpcclient: allow to set flags in enumprinters command.
Guenther
2009-03-20 17:20:32 +01:00
Günther Deschner
045151b767 s3-spoolss: pure comsetics.
sorry, I just need to do that.

Guenther
2009-03-20 10:49:45 +01:00
Günther Deschner
531af136f9 s3: remove POLICY_HND.
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
9d1ab9a001 spoolss: add my copyright.
Guenther
2009-03-18 17:18:46 +01:00
Günther Deschner
31106cdace s3-spoolss: use printer and job notify enums provided by idl.
Guenther
2009-03-18 16:47:01 +01:00
Günther Deschner
8b730ca1d8 s3-rpcclient: fix spoolss notify test after spoolss_Field changes.
Guenther
2009-03-18 16:46:42 +01:00
Günther Deschner
9fdeb7f7b3 s3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.
Guenther
2009-03-18 14:18:42 +01:00
Günther Deschner
8c3ef2d900 s3-rpcclient: use rpccli_spoolss_enumprinterdataex wrapper.
Guenther
2009-03-18 01:30:26 +01:00
Günther Deschner
153a837bd6 s3-rpcclient: say that we are displaying a REG_MULTI_SZ in display_reg_value().
Guenther
2009-03-17 22:15:20 +01:00
Günther Deschner
bc95ec04e6 s3-rpcclient: use rpccli_spoolss_enumprinterkey wrapper.
Guenther
2009-03-17 12:18:37 +01:00
Günther Deschner
96ae179aa3 s3-rpcclient: fix cmd_spoolss_getprinterdataex.
Guenther
2009-03-17 12:14:19 +01:00
Günther Deschner
3e16ede0c2 s3-rpcclient: use rpccli_spoolss_EnumPrinterData in enumdata command.
Guenther
2009-03-17 12:07:40 +01:00
Günther Deschner
b8a3e5ea0c s3-rpcclient: use rpccli_spoolss_SetPrinterData.
Guenther
2009-03-17 11:57:08 +01:00
Günther Deschner
704220c2a2 s3-rpcclient: use rpccli_spoolss_getprinterdata.
Guenther
2009-03-17 11:49:15 +01:00
Günther Deschner
aaae578d0e s3-rpcclient: pure cosmetics for cmd_spoolss_getdriver.
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
5d76a12cf5 s3-rpcclient: pure cosmetics for cmd_spoolss_getprinter.
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
0658a402d7 s3-rpcclient: pure cosmetics for cmd_spoolss_enum_ports.
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
0e66a244d3 s3-rpcclient: use rpccli_spoolss_enumprinters wrapper.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
058f47d08d s3-spoolss: remove old leftover driver print functions.
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
915c593926 s3-rpcclient: use rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
d279e76cd2 s3-rpcclient: use rpccli_spoolss_enumjobs wrapper in enumjobs command.
Guenther
2009-03-13 09:25:20 +01:00
Günther Deschner
d75d350287 s3-rpcclient: add enummonitors command to enumerate print monitors.
Guenther
2009-03-07 00:55:39 +01:00
Günther Deschner
e9179a6850 s3-rpcclient: use rpccli_spoolss_enumports wrapper.
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
62d73b8854 s3-rpcclient: add enumprocdatatypes command to enumerate print processor data
types.

Guenther
2009-03-07 00:55:15 +01:00
Günther Deschner
a58e59fc6e s3-rpcclient: add enumprocs command to enumerate print processors.
Guenther
2009-03-07 00:49:47 +01:00
Günther Deschner
4541aa5f84 s3-spoolss: use form flags from idl in rpcclient and net.
Guenther
2009-03-06 14:32:46 +01:00
Günther Deschner
6336366abb s3-rpcclient: use new rpccli_spoolss_enumforms wrapper.
Guenther
2009-03-06 14:30:10 +01:00
Günther Deschner
8b336211c3 s3-rpcclient: zero out devmode and secdesc in setdriver and setprinter command.
Guenther
2009-03-02 14:25:01 +01:00
Günther Deschner
b7b287d417 s3-rpcclient: add getjob spoolss command.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
a263d8f430 s3-rpcclient: use is_valid_policy_hnd before closing handles.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
d86cb9b52d s3-rpcclient: support level 2 in spoolss_addform.
Guenther
2009-02-25 21:18:10 +01:00
Günther Deschner
01d1aaf63e s3-rpcclient: allow to set level in spoolss getform query and display all levels.
Guenther
2009-02-25 14:21:11 +01:00
Günther Deschner
2390ea274b s3-rpcclient: more uses of is_valid_policy_hnd in spoolss and samr commands.
Guenther
2009-02-25 14:19:24 +01:00
Günther Deschner
a041d90619 s3-spoolss: use is_valid_policy_hnd to check for valid policy handles.
Guenther
2009-02-25 12:22:31 +01:00
Günther Deschner
109ba07b0e s3-spoolss: use rpccli_spoolss_addprinterex wrapper.
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
1a77218dca s3-rpcclient: use rpccli_spoolss_SetPrinter and rpccli_spoolss_getprinter.
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
3777978eb4 s3-rpcclient: use rpccli_spoolss_AddPrinterDriver.
Guenther
2009-02-24 23:57:51 +01:00
Günther Deschner
e4c1841d1a s3-rpcclient: use rpccli_spoolss_getprinterdriver2 wrapper.
Guenther
2009-02-24 22:40:51 +01:00
Günther Deschner
dc0bf17ac1 s3-rpcclient: use correct clientname in spoolss_RemoteFindFirstPrinterChangeNotifyEx command.
Guenther
2009-02-23 12:48:19 +01:00
Günther Deschner
8c569b59f0 s3-rpcclient: use rpccli_spoolss_GetPrintProcessorDirectory in rpcclient.
Guenther
2009-02-19 19:21:48 +01:00
Günther Deschner
ebb3b30700 s3-rpcclient: use SPOOLSS_ARCHITECTURE_NT_X86 define in spoolss getdriverdir cmd.
Guenther
2009-02-19 19:20:07 +01:00
Günther Deschner
aaec578c51 s3-rpcclient: use rpccli_spoolss_GetPrinterDriverDirectory in rpcclient.
Guenther
2009-02-19 02:06:12 +01:00
Günther Deschner
046cb24d0a s3-rpcclient: use rpccli_spoolss_RemoteFindFirstPrinterChangeNotifyEx.
Guenther
2009-02-17 03:51:50 +01:00
Günther Deschner
cba40f6521 s3-rpcclient: use rpccli_spoolss_AddPrinterEx.
Guenther
2009-02-14 01:42:00 +01:00
Günther Deschner
30e18aadc3 s3-rpcclient: use rpccli_spoolss_GetPrinterDataEx.
Guenther
2009-02-12 22:51:29 +01:00
Volker Lendecke
0b6f21841e Only assign argv[1] after the argc check, thanks Tim! 2009-02-11 09:35:15 +01:00
Volker Lendecke
df42719ca3 Fix an uninitialized variable 2009-02-11 08:42:50 +01:00
Günther Deschner
473c558937 s3-rpcclient: use one macro for all printername formats.
Guenther
2009-02-10 23:59:24 +01:00
Günther Deschner
9d05e91ec0 s3-rpcclient: use rpccli_spoolss_openprinter_ex helper.
Guenther
2009-02-10 11:05:02 +01:00
Günther Deschner
84a0076c4b s3-rpcclient: remove a pointless fstring.
Guenther
2009-02-09 19:07:34 +01:00
Günther Deschner
438af255c6 s3-rpcclient: use srv_name_slash instead of formating servername again and again.
Guenther
2009-02-09 19:07:34 +01:00
Günther Deschner
dfa559145c s3-spoolss: remove whitespace in printing code.
Guenther
2009-02-09 12:42:42 +01:00
Günther Deschner
cae89f5250 s3-rpcclient: use rpccli_spoolss_DeletePrinterDriverEx.
Guenther
2009-02-09 12:34:03 +01:00
Günther Deschner
2a74f8bdbb s3-rpcclient: use rpccli_spoolss_DeletePrinterDriver.
Guenther
2009-02-09 12:34:03 +01:00
Günther Deschner
373a4d829d s3-rpcclient: use rpccli_spoolss_GetForm.
Guenther
2009-02-09 10:42:54 +01:00
Günther Deschner
c7d572a76f s3-rpcclient: use rpccli_spoolss_SetForm.
Guenther
2009-02-09 10:42:26 +01:00
Günther Deschner
5234f5e433 s3-spoolss: use rpccli_spoolss_AddForm in net and rpcclient.
Guenther
2009-02-09 10:42:04 +01:00
Günther Deschner
45f142fe29 s3-rpcclient: fix getform command asprintf return code.
Guenther
2009-02-09 10:38:30 +01:00
Günther Deschner
b8cd20cd5c s3-spoolss: use rpccli_spoolss_DeleteForm.
Guenther
2009-02-07 01:52:28 +01:00
Günther Deschner
0bd5698dab s3-spoolss: use rpccli_spoolss_ClosePrinter.
Guenther
2009-02-06 18:58:34 +01:00
Jeremy Allison
07e0094365 Fix all warnings in source3 with gcc4.3.
Jeremy.
2008-12-31 18:06:57 -08:00
Volker Lendecke
daeb3a190d Remove the global "cmdline_auth_info" from source3/lib/util.c
This involves changing all our clients, that's why it's so large.
2008-12-14 14:00:43 +01:00
Jelmer Vernooij
ddcab787c4 Rename dos_errstr() to win_errstr() for consistency with Samba 4. 2008-11-01 17:19:26 +01:00
Jelmer Vernooij
f3f9446ec1 Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal. 2008-10-18 16:16:57 +02:00
Volker Lendecke
82b5f54f96 Refactoring: rpcclient uses ndr_syntax_id instead of pipe_idx
(This used to be commit 85db87c451)
2008-07-21 14:36:27 +02:00
Volker Lendecke
1335da2a7c Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc)
2008-07-20 17:37:11 +02:00
Volker Lendecke
5a63e1dcb6 Fix a segfault in rpcclient adddriver
(cherry picked from commit d4b5a9d673)
(This used to be commit 8573032877)
2008-06-26 15:35:56 +02:00
Karolin Seeger
98ed31a107 Fix typo.
arguements -> arguments

Karolin
(This used to be commit 16b5b772d2)
2008-06-17 09:46:17 +02:00
Volker Lendecke
862d7e32b9 Move user/domain from rpc_pipe_client to cli_pipe_auth_data
(This used to be commit 42de50d2cd)
2008-04-25 11:12:50 +02:00
Volker Lendecke
b9cc055062 Introduce rpc_pipe_np_smb_conn()
This abstracts away all references to rpc_pipe_client->cli, the only reference
is now in cli_pipe.c.
(This used to be commit c56e1c08ce)
2008-04-20 14:08:16 +02:00
Volker Lendecke
2a2188591b Add "desthost" to rpc_pipe_client
This reduces the dependency on cli_state
(This used to be commit 783afab9c8)
2008-04-20 00:13:09 +02:00
Michael Adam
9644b6cb50 Add a talloc context parameter to current_timestring() to fix memleaks.
current_timestring used to return a string talloced to talloc_tos().
When called by DEBUG from a TALLOC_FREE, this produced messages
"no talloc stackframe around, leaking memory". For example when
used from net conf.

This also adds a temporary talloc context to alloc_sub_basic().
For this purpose, the exit strategy is slightly altered: a common
exit point is used for success and failure.

Michael
(This used to be commit 16b5800d4e)
2008-03-28 16:34:51 +01:00
Volker Lendecke
130b474e47 Fix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
(This used to be commit 5ec2dbd144)
2008-03-19 15:05:30 +01:00
Volker Lendecke
6b5ce93d15 Fix bug 5421 -- thanks to MJ Anthony
(This used to be commit a3d0450e0a)
2008-02-05 10:34:00 +01:00
Volker Lendecke
b679dda6c9 Fix bogus uninitialized variable warnings
(This used to be commit 71d6580c83)
2008-01-25 21:20:39 +01:00
Volker Lendecke
587cf54c61 strtok -> strtok_r
(This used to be commit fd34ce4370)
2008-01-23 15:08:04 +01:00
Jeremy Allison
e2ae63bcf7 Make all the tools use the proper accessor functions.
Jeremy.
(This used to be commit 6d61bb8797)
2007-12-06 18:58:01 -08:00
Jeremy Allison
1b92ea5559 Remove pstrings from client/client.c by doing a large rewrite.
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9a)
2007-12-06 17:16:33 -08:00
Volker Lendecke
f4e4df66e7 Fix some C++ warnings
I think were are actually bugs.
(This used to be commit 1be19f0788)
2007-12-01 10:43:11 -08:00
Jeremy Allison
c049b8157d More trivial pstring removal.
Jeremy.
(This used to be commit bac3bb2f6e)
2007-11-20 15:31:37 -08:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
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 f35a266b3c)
2007-10-18 17:40:25 -07:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Jeremy Allison
79de0ad946 r22588: Make all uses of TALLOC_MEMDUP consistent.
Jeremy.
(This used to be commit 8ad13718af)
2007-10-10 12:19:48 -05:00
Jeremy Allison
7f8d89bc54 r22062: Fix the parsing of info level 3. Flags is not a flags
field, but an offset. Fixed 64-bit display of ACLs on
printers.
Jeremy.
(This used to be commit 0c8949ff5d)
2007-10-10 12:19:07 -05:00
Volker Lendecke
ecf90c495e r19991: Sorry for this 2000-liner...
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 fea52801de)
2007-10-10 12:16:18 -05:00
Volker Lendecke
202f63e476 r19811: Decode REG_MULTI_SZ and REG_BINARY
(This used to be commit 6793301751)
2007-10-10 12:15:57 -05:00
Volker Lendecke
e23781b3b3 r17316: More C++ warnings -- 456 left
(This used to be commit 1e4ee728df)
2007-10-10 11:38:25 -05:00
Jeremy Allison
fbdcf2663b r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
to do the upper layer directories but this is what
everyone is waiting for....

Jeremy.
(This used to be commit 9dafb7f48c)
2007-10-10 11:19:14 -05:00
Jeremy Allison
3c9a5c7b58 r16654: Fix bug #3893 reported by jason@ncac.gwu.edu.
Jeremy.
(This used to be commit 7875394898)
2007-10-10 11:19:06 -05:00
Volker Lendecke
8961048d24 r16339: Fix Klocwork ID
277 278     (cmd_*)

485 487 488 (ldap.c)

Volker
(This used to be commit 5b1eba76b3)
2007-10-10 11:17:36 -05:00
Jeremy Allison
4f53350b43 r14833: Fix resource leak on error code path. Coverity #280.
Jeremy.
(This used to be commit b985bdcb87)
2007-10-10 11:15:50 -05:00
Gerald Carter
fb5362c069 r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
macro which sets the freed pointer to NULL.
(This used to be commit b65be8874a)
2007-10-10 11:10:14 -05:00
Jeremy Allison
d6a68f8739 r11454: Last 2 uninitialized warnings.
Jeremy.
(This used to be commit 5f10368ff0)
2007-10-10 11:05:17 -05:00
Jeremy Allison
8d7c886671 r11137: Compile with only 2 warnings (I'm still working on that code) on a gcc4
x86_64 box.
Jeremy.
(This used to be commit d720867a78)
2007-10-10 11:05:02 -05:00
Gerald Carter
54abd2aa66 r10656: BIG merge from trunk. Features not copied over
* \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 939c3cb5d7)
2007-10-10 11:04:48 -05:00