1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

1227 Commits

Author SHA1 Message Date
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
Jeremy Allison
8dd1faaa29 Remove the global "struct cm_cred_struct" and associated calls, make
callers pass in a struct user_auth_info * instead. This commit causes
smbc_set_credentials() to print out a message telling callers to use
smbc_set_credentials_with_fallback() instead, as smbc_set_credentials()
has a broken API (no SMBCCTX * pointer). No more global variables used
in the connection manager API for client dfs calls.
Jeremy.
2009-03-17 14:53:06 -07: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
a4e570e3ce s3-rpcclient: add test command to call netr_LogonGetCapabilities (for bug #6100).
Guenther
2009-02-25 22:17:39 +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
762b92e285 s3-eventlog: fix rpcclient and server stub for eventlog_GetLogInformation.
Guenther
2009-02-21 21:14:11 +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
Günther Deschner
c464b5ebc0 s3-rpcclient: fix eventlog read client to read an array of entries.
Guenther
2009-02-04 22:49:51 +01:00
Volker Lendecke
57de60a83f cli_get_pipe_name_from_interface does not really need a talloc_ctx 2009-02-01 14:34:22 +01:00
Günther Deschner
2eb5dacbb8 s3-rpcclient: add eventlog_loginfo command.
Guenther
2009-01-24 03:33:47 +01:00
Günther Deschner
ecad0b9335 s3-rpcclient: add eventlog_backuplog command.
Guenther
2009-01-24 03:33:44 +01:00
Günther Deschner
c92ec31d30 s3-rpcclient: add eventlog_registerevsource command.
Guenther
2009-01-24 03:33:43 +01:00
Günther Deschner
bfc2d3bf0a s3-rpcclient: add eventlog_reporteventsource command.
Guenther
2009-01-24 03:33:25 +01:00
Günther Deschner
f1067c0ffc s3-rpcclient: add eventlog_reportevent command.
Guenther
2009-01-24 03:33:23 +01:00
Volker Lendecke
3b34486f6a Actually complete 3662c2b... 2009-01-22 12:13:55 +01:00
Günther Deschner
a950242143 s3-rpcclient: always parse the full eventlog entry.
Guenther
2009-01-14 10:18:14 +01:00
Günther Deschner
4561721cc3 s3-rpcclient: some cleanup for eventlog client.
Guenther
2009-01-12 18:04:03 +01:00
Volker Lendecke
ad6e9c6012 start rpcclient epmapper 2009-01-09 23:08:16 +01:00
Günther Deschner
8cddcefb13 s3-rpcclient: add eventlog test client.
Guenther
2009-01-08 19:37:29 +01:00
Günther Deschner
46f55ef5bc s3-samr: avoid all init_samr_user* functions.
Guenther
2009-01-06 16:02:10 +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
Günther Deschner
8be38511a3 s3-rpcclient: add setuserinfo to set passwords using level 18,21,23,24,25,26.
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
e97149087a s3-samr: fix rpcclient after idl change.
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
e9269e57fc s3-rpcclient: add get_domain_handle for samr commands.
Guenther
2008-12-05 14:27:02 +01:00
Tim Prouty
1eb743ab8e s3: Change sockaddr util function names for consistency
Also eliminates name conflicts with OneFS system libraries
2008-12-03 10:40:20 -08:00
Günther Deschner
798c4b3e6a s3-samr: use samr_DomainServerState in client tools.
Guenther
2008-12-02 00:37:39 +01:00
Günther Deschner
9b40d26e30 s3-rpcclient: fix cmd_ntsvcs_get_dev_reg_prop.
Guenther
2008-11-19 23:25:16 +01:00
Günther Deschner
2fbdf22541 s3-rpcclient: fill in unknowns in cmd_ntsvcs_get_hw_prof_info.
Guenther
2008-11-17 13:13:30 +01:00
Günther Deschner
0bb8665731 s3-rpcclient: correct some former unknonws in cmd_ntsvcs_hw_prof_flags command.
Guenther
2008-11-12 10:19:17 +01:00
Günther Deschner
0241b2cbda s3-rpcclient: some corrections for the PNP_GetDeviceRegProp client.
Guenther
2008-11-12 10:18:46 +01:00
Günther Deschner
17fe93f94b s3-rpcclient: add ntsvcs_getdevlist command.
Guenther
2008-11-12 10:18:26 +01:00
Günther Deschner
365a703d13 s3-rpcclient: add ntsvcs_getdevlistsize command.
Guenther
2008-11-12 10:18:18 +01:00
Günther Deschner
008ac81b31 s3-rpcclient: add database_redo command.
Guenther
2008-11-06 18:51:38 +01:00
Jelmer Vernooij
ddcab787c4 Rename dos_errstr() to win_errstr() for consistency with Samba 4. 2008-11-01 17:19:26 +01:00
Günther Deschner
68aa9bd67f s3-rpcclient: add getdcsitecoverage call.
Guenther
2008-10-27 14:29:04 +01:00
Volker Lendecke
f4e760faf9 Fix bug 5840: Segfault in "rpcclient lsaaddacctrights" 2008-10-22 14:31:40 +02:00
Günther Deschner
b11f3a60fd s3-lsa-server: fix _lsa_GetUserName.
Guenther
2008-10-21 11:39:45 +02:00
Günther Deschner
cefe4c6697 s3-rpcclient: fix cmd_lsa build.
Guenther
2008-10-20 22:09:07 +02: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
Günther Deschner
6503ffaa04 s3: fix s3 drsuapi callers.
Guenther
2008-10-17 10:54:01 +02:00
Günther Deschner
f0dcc1fad4 s4-build: fix drsuapi callers.
Guenther
2008-10-16 14:03:10 +02:00
Günther Deschner
65dc1eeceb s3: fix various samr callers.
Guenther
2008-10-15 17:11:27 +02:00
Günther Deschner
3b9a03a7c3 s3: fix samlogon client and server calls.
Guenther
2008-10-15 16:14:20 +02:00
Jelmer Vernooij
1f3e4f39c5 Use GUID_string rather than smb_uuid_string(). 2008-10-14 02:26:18 +02:00
Jelmer Vernooij
cb78d4593b Cope with changed signature of http_timestring(). 2008-10-11 23:57:44 +02:00
Michael Adam
3ed6cfad01 rpcclient: Set the pid filed of the outgoing DsBindInfo to 0.
This is for debugging and informational purposes only.
The assignment is implementation specific.
(WSPP docs, sec. 5.35).

Michael
(This used to be commit 18ea033909)
2008-07-28 14:08:34 +02:00
Michael Adam
2bd58bf383 Change occurrences of the u1 member of DsBindInfo* to pid after idl change.
Michael
(This used to be commit 42f3d681ca)
2008-07-22 16:28:13 +02:00
Michael Adam
2d7660dcc3 rpcclient: make DsGetNCChanges work against w2k8 (add knowledge of DsBindInfo48)
Michael
(This used to be commit 27ce662f5d)
2008-07-22 14:47:11 +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
99526d391d Refactoring: Change calling conventions for cli_rpc_pipe_open_schannel
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 1fcfca007f)
2008-07-20 17:37:14 +02:00
Volker Lendecke
e0be03d8d5 Refactoring: Change calling conventions for cli_rpc_pipe_open_ntlmssp
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit a13f059955)
2008-07-20 17:37:11 +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
Michael Adam
4f0e0e5e83 rpcclient: add ability to fetch single objects with dsgetncchanges command
call as "dsgetncchanges <object_dn> single"

after calling "seal"

Michael
(This used to be commit c9ab2953c5)
2008-07-18 15:15:49 +02:00
Michael Adam
f52b17f25c rpcclient: use level 5 or level 8 in dsgetncchanges command based on bind-info.
Michael
(This used to be commit 3ab2e7fada)
2008-07-18 14:34:46 +02:00
Günther Deschner
9ec4980161 rpcclient: for testing, add dsgetncchanges command.
Guenther
(This used to be commit 54f14b3824)
2008-07-17 18:54: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
Günther Deschner
7139745b01 rpcclient: add samr chgpasswd command.
Guenther
(This used to be commit b90ae34372)
2008-06-25 23:58:50 +02:00
Günther Deschner
14d500c0e7 rename rpccli_samr_chgpasswd3 to rpccli_samr_chgpasswd_user3.
Guenther
(This used to be commit b1209a039b)
2008-06-25 23:58:50 +02:00
Günther Deschner
059293cbf4 rename rpccli_samr_chgpasswd_user to rpccli_samr_chgpasswd_user2.
Guenther
(This used to be commit 5b4650d56c)
2008-06-25 23:58:50 +02:00
Günther Deschner
8fd045f918 rpcclient: add more generic internal dscracknames call.
Guenther
(This used to be commit 2351b0845c)
2008-06-17 20:01:51 +02:00
Karolin Seeger
98ed31a107 Fix typo.
arguements -> arguments

Karolin
(This used to be commit 16b5b772d2)
2008-06-17 09:46:17 +02:00
Günther Deschner
9883567fa7 rpcclient: add more useful comments what sign/seal commands are doing.
Guenther
(This used to be commit ec278d8bc8)
2008-06-10 22:51:04 +02:00
Günther Deschner
09f55d0ef6 rpcclient: add drsuapi dsgetdcinfo call.
Guenther
(This used to be commit 1e883c88cb)
2008-05-26 12:21:11 +02:00
Günther Deschner
6db0efbea0 rpcclient: call drsuapi_DsUnbind() when finished with DsCrackNames call.
Guenther
(This used to be commit d70376fc4f)
2008-05-26 12:21:11 +02:00
Günther Deschner
b83131a16f rpcclient: simplify drsuapi dscracknames call slightly.
Guenther
(This used to be commit 5611cf4253)
2008-05-26 12:21:11 +02:00
Günther Deschner
fb05d41cb7 drsuapi: add very basic drsuapi rpcclient command set.
Guenther
(This used to be commit bd13c87bac)
2008-05-24 01:28:22 +02:00
Günther Deschner
36f67dc5e0 Revert "drsuapi: fix the build."
This reverts commit b2421c8116.
(This used to be commit f853f3b0ac)
2008-05-24 01:24:03 +02:00
Günther Deschner
0eae576b19 drsuapi: fix the build.
Guenther
(This used to be commit b2421c8116)
2008-05-24 00:58:45 +02:00
Tim Prouty
fb37f15600 Cleanup size_t return values in callers of convert_string_allocate
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5)
2008-05-20 22:40:13 +02:00
Günther Deschner
4d8836ab96 Fix client authentication with -P switch in client tools (Bug 5435).
Guenther
(This used to be commit d077ef64cd)
2008-05-05 16:59:53 +02:00
Günther Deschner
fe2c8e38d3 rpcclient: fix another srv_name_slash.
Guenther
(This used to be commit de946e6158)
2008-04-29 20:22:02 +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
9e9d40d097 Refactoring: Make cli_pipe_auth_data a pointer off rpc_pipe_client
(This used to be commit f665afaaa3)
2008-04-25 11:12:50 +02:00
Günther Deschner
12b9be6d5e rpcclient: Add tiny fix for cmd_samr_get_dispinfo_idx().
Guenther
(This used to be commit c15b5d73ba)
2008-04-24 22:01:51 +02:00
Günther Deschner
bd8cb7b564 rpcclient: Add getdispinfoidx command.
Guenther
(This used to be commit 7d8461d080)
2008-04-22 23:11:53 +02:00
Volker Lendecke
b78453326b Remove the "pwd" struct from rpc_pipe_client
The only user of this was decrypt_trustdom_secret, and this only needs the NT
hash anyway.
(This used to be commit 3d8c2a47e6)
2008-04-21 23:36:05 +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
e73e8297f5 Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_struct
(This used to be commit 99fc3283c4)
2008-04-20 14:08:16 +02:00
Volker Lendecke
e1102b8f48 Introduce rpccli_set_timeout()
Reduce dependency on "cli" member of rpc_pipe_client struct
(This used to be commit 2e4c1ba389)
2008-04-20 00:14:26 +02:00
Volker Lendecke
9048cafbea Move srv_name_slash from cli_state to rpc_pipe_client
(This used to be commit a9061e52e1)
2008-04-20 00:14:13 +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
Günther Deschner
51d9e913bb Fix lsa_QueryTrustedDomainInfo caller.
Guenther
(This used to be commit 9f148daaf2)
2008-04-08 23:09:24 +02:00
Günther Deschner
81579895a6 Fix lsa_TrustedDomainInfo callers.
Guenther
(This used to be commit e0eae39017)
2008-04-08 22:55:52 +02:00
Günther Deschner
be9b46b2ce Remove some dead code in rpcclient.
Guenther
(This used to be commit c7ae1a9b53)
2008-04-04 01:44:16 +02:00
Günther Deschner
29f44dc144 Move rpccli_try_samr_connects out of rpcclient.
Guenther
(This used to be commit f550cdb6f2)
2008-04-04 01:40:29 +02:00
Günther Deschner
99d3590455 Fix NETLOGON credential chain with Windows 2008 all over the place.
In order to avoid receiving NT_STATUS_DOWNGRADE_DETECTED from a w2k8
netr_ServerAuthenticate2 reply, we need to start with the AD netlogon negotiate
flags everywhere (not only when running in security=ads). Only for NT4 we need
to do a downgrade to the returned negotiate flags.

Tested with w2k8, w2ksp4, w2k3r2 and nt4sp6.

Guenther
(This used to be commit 0970369ca0)
2008-04-02 11:12:47 +02:00
Günther Deschner
c523c2c3e6 Fix build of rpcclient.
Guenther
(This used to be commit 3cb1cdee93)
2008-04-01 00:32:23 +02:00
Günther Deschner
4369c14a66 Re-add support for the samr parameters string.
(dialin settings, terminal server settings, etc.)

Guenther
(This used to be commit c4f248df8e)
2008-03-31 20:55:40 +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
Günther Deschner
6e026fff3f Add ntsvcs_getdevregprop command to rpcclient.
Guenther
(This used to be commit 4abe30fdae)
2008-03-26 16:46:58 +01:00
Volker Lendecke
7168f310a6 Fix Coverity ID 507
(This used to be commit 4ea5798b97)
2008-03-21 11:45:57 +01:00
Günther Deschner
3c2d315b4c Add support for setting resume handle in netsessenum rpcclient command.
Guenther
(This used to be commit a01588d65f)
2008-03-21 04:16:21 +01:00
Günther Deschner
4489ad0998 Allow to set or unset resume_handle in netconnenum in rpcclient.
Guenther
(This used to be commit f1b93c24fe)
2008-03-21 04:16:21 +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
Günther Deschner
fd62e5688b Use existing srv_name_slash.
Guenther
(This used to be commit 5f2b3145fc)
2008-03-12 16:35:41 +01:00
Günther Deschner
45a3c8275f Allow to send no resume_handle in rpcclient's NetShareEnum* calls.
Guenther
(This used to be commit 7e178a3dc9)
2008-03-11 11:33:07 +01:00