1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

2703 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
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
f9712d568a s3-net: use rpccli_spoolss_enumprinterdataex.
Guenther
2009-03-18 01:30:34 +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
e0c50aafce s3-net: use rpccli_spoolss_enumprinterkey wrapper.
Guenther
2009-03-17 12:18:43 +01:00
Günther Deschner
12c6ac6a43 s3-net: fix net_spoolss_setprinterdataex.
Guenther
2009-03-17 12:14:47 +01:00
Günther Deschner
acf523ad7e s3-net: fix net_spoolss_setprinterdata.
Guenther
2009-03-17 12:10:43 +01:00
Günther Deschner
2a8c078357 s3-net: use rpccli_spoolss_EnumPrinterData.
Guenther
2009-03-17 12:08:29 +01:00
Günther Deschner
4ea46d69bb s3-net: temporary disable net_spoolss_setprinterdata.
Guenther
2009-03-17 12:01:29 +01:00
Günther Deschner
f14d4267c9 s3-net: 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
7876d28d9a s3-net: use rpccli_spoolss_enumprinterdrivers wrapper.
Guenther
2009-03-13 09:25:22 +01:00
Volker Lendecke
46bcb10b5a Shape up pdb_search a bit by making it a talloc ctx with a destructor 2009-03-07 17:51:21 +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
01e4f63c5e s3-net: use new rpccli_spoolss_enumforms wrapper.
Guenther
2009-03-06 14:30:17 +01:00
Michael Adam
0945789031 s3:net conf: reduce memory usage of "net conf import".
"net conf import" was wrapped in one big transaction.
This lead to MAX_TALLOC_SIZE being exceeded at roughly
1500 shares. This patch resolves that problem by
limiting the top level transactions in "net conf import"
to 100 shares.

Michael
2009-03-04 22:49:24 +01:00
Günther Deschner
670a22852c s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.
Guenther
2009-02-27 13:33:15 +01:00
Michael Adam
e026d217bf s3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
d2fc3abeea s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
58fc61217d s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
This paves the way for hiding the typedef and the implementation from the
surface.

Michael
2009-02-26 13:22:51 +01:00
Michael Adam
42b8d6b308 s3:net: wrap net conf import into one big transaction
This speeds up "net conf import" of a file with 2000 shares
from 11 minutest to 1m50s on my box.

Michael
2009-02-26 11:05:23 +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
f8af5130d5 s3-net: use rpccli_spoolss_getprinter and rpccli_spoolss_SetPrinter.
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
3ceffcaa46 s3-net: use rpccli_spoolss_AddPrinterDriver and rpccli_spoolss_getprinterdriver2
wrapper.

Guenther
2009-02-24 22:40:51 +01:00
Volker Lendecke
dbc79381a8 Convert name_mangle() to use talloc 2009-02-24 20:40:46 +01:00
Jeremy Allison
faa1100d22 More warning fixes for Solaris.
Jeremy.
2009-02-23 16:22:43 -08:00
Jeremy Allison
2033b44c3f More warning fixes for Solaris.
Jeremy.
2009-02-23 15:44:34 -08:00
Jeremy Allison
669f2a02e2 Fix printf warnings found on systems where time_t <> long int.
Jeremy.
2009-02-19 13:36:20 -08:00
todd stecher
c19214424b S3: Log warning in smbstatus about lack of pid in anonymous mode. 2009-02-18 18:08:33 -08:00
Volker Lendecke
5b6c428763 Fix an uninitialized variable, introdued with 4d100f2f 2009-02-13 12:15:04 +01:00
Volker Lendecke
83c2f028d8 Fix Coverity ID 742 (RESOURCE_LEAK) 2009-02-13 10:20:57 +01:00
Volker Lendecke
6e19b22c5a Fix Coverity ID 744
This was marked as a resource leak. This change makes the code a bit clearer
that we always free error_string.
2009-02-13 10:20:51 +01:00
Volker Lendecke
4d100f2f6a Fix Coverity ID 745 (RESOURCE_LEAK) 2009-02-13 10:20:45 +01:00
Günther Deschner
38e2888653 s3-net: use rpccli_spoolss_SetPrinterDataEx.
Guenther
2009-02-12 22:51:29 +01:00
todd stecher
9d4d2f70cb S3: Fixes for coverity issues. 2009-02-10 14:43:14 -08:00
Günther Deschner
9d05e91ec0 s3-rpcclient: use rpccli_spoolss_openprinter_ex helper.
Guenther
2009-02-10 11:05:02 +01:00
todd stecher
b4a4d4c9d0 S3: Various fixes for log2pcaphex utility 2009-02-09 18:04:53 -08:00
Volker Lendecke
07a8ad711b Attempt to fix the build 2009-02-09 20:18:57 +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
5234f5e433 s3-spoolss: use rpccli_spoolss_AddForm in net and rpcclient.
Guenther
2009-02-09 10:42:04 +01:00
Günther Deschner
0bd5698dab s3-spoolss: use rpccli_spoolss_ClosePrinter.
Guenther
2009-02-06 18:58:34 +01:00
Michael Adam
55f2cb18ad s3:net conf: remove check for sharename being a usernam in "net conf addshare"
This is useless and can be overriden by "net conf setparm" anyways.

Michael
2009-02-06 11:05:50 +01:00
Günther Deschner
7c3ba34788 s3: use samr_RidWithAttribute instead of DOM_GID.
Guenther
2009-02-05 00:47:06 +01:00
Günther Deschner
0016c57ca1 s3-net: remove unused ENUM_HND.
Guenther
2009-02-05 00:40:59 +01:00
Günther Deschner
0126dba7ef s3-net: add "net eventlog export".
This allows to export our tdb eventlog representation into a native
win32 *.evt eventlog file.

Guenther
2009-02-04 19:02:17 +01:00
Günther Deschner
c0cf20a49e s3-net: add "net eventlog import".
This allows to import a native (non-wrapped) win32 *.evt eventlog file
into our tdb eventlog representation.

Guenther
2009-02-04 19:01:46 +01:00
Günther Deschner
21d23bf7e8 s3-net: add "net eventlog dump".
This allows to dump a native (non-wrapped) win32 *.evt eventlog file.

Guenther
2009-02-04 19:01:31 +01:00
Günther Deschner
de7f0a70c8 s3-eventlogadm: use struct eventlog_Record_tdb for storing entries in tdbs.
Guenther
2009-02-04 17:47:07 +01:00
Günther Deschner
c53e3bfa7d s3-eventlogadm: add command to dump stored tdb entries.
Guenther
2009-02-03 16:06:57 +01:00