abartlet/samba.git/.git
15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge libcli-auth-merge
Andrew Bartlett [Thu, 19 Mar 2009 00:46:42 +0000 (11:46 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge

15 years agouse the tevent nesting code to avoid the uid problem in the VFS
Andrew Tridgell [Thu, 19 Mar 2009 00:23:49 +0000 (11:23 +1100)]
use the tevent nesting code to avoid the uid problem in the VFS
backend

The vfs_unixuid module changes the uid of the process when executing
operations on behalf of the user. Within the VFS backend we may rely
on semi-async calls, such as winbind calls, which will call the event
loop again. To cope with this we need to ensure that while inside
those calls we revert the uid to root, then revert back to the
connected user when we have finished with the semi-async calls.

15 years agofixed a logic bug in the tevent nesting code
Andrew Tridgell [Thu, 19 Mar 2009 00:21:36 +0000 (11:21 +1100)]
fixed a logic bug in the tevent nesting code

The event nesting code never triggered as nesting.level was never
greater than 1. The main event loop needs to increase the nesting
level by 1.

I also added a paranoia check to the nesting setup call. The API as
currently written cannot support multiple nesting hooks, so we need to
abort if multiple hooks are tried.

15 years agos3 onefs: Correctly error out when the read returns EOF
Tim Prouty [Wed, 18 Mar 2009 21:49:50 +0000 (21:49 +0000)]
s3 onefs: Correctly error out when the read returns EOF

Also add some more debugging.

15 years agoFix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly.
Jeremy Allison [Wed, 18 Mar 2009 22:44:13 +0000 (15:44 -0700)]
Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb correctly.
This is a really nasty one to fix as in order to successfully update the
passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash
values before we do the upgrade.
Jeremy.

15 years agos3: remove POLICY_HND.
Günther Deschner [Wed, 18 Mar 2009 21:49:41 +0000 (22:49 +0100)]
s3: remove POLICY_HND.

Guenther

15 years agos3-rpc_parse: remove some unused parsing code.
Günther Deschner [Wed, 18 Mar 2009 14:09:57 +0000 (15:09 +0100)]
s3-rpc_parse: remove some unused parsing code.

Guenther

15 years agos3-spoolss: fix _spoolss_GetPrinterData printerserver handle query error code.
Günther Deschner [Wed, 18 Mar 2009 20:54:26 +0000 (21:54 +0100)]
s3-spoolss: fix _spoolss_GetPrinterData printerserver handle query error code.

When _spoolss_GetPrinterData receives a query on a printserver handle for a
value that we have not stored or do not provide, we need to return
WERR_INVALID_PARAM, not WERR_BADFILE. Tested with w2k and w2k3 servers.
Found by torture test.

Guenther

15 years agos3-spoolss: fix _spoolss_EnumPrinterDataEx error path.
Günther Deschner [Wed, 18 Mar 2009 20:36:40 +0000 (21:36 +0100)]
s3-spoolss: fix _spoolss_EnumPrinterDataEx error path.

When a windows clients queries the "" key, we need to make sure to return with
the appropriate error (WERR_INVALID_PARAM in that case), and not fall through
to the buffer size handling macros. Found by torture test.

Guenther

15 years agos3-rpc_parse: remove unused BUFFER5 and UNISTR3.
Günther Deschner [Wed, 18 Mar 2009 11:22:22 +0000 (12:22 +0100)]
s3-rpc_parse: remove unused BUFFER5 and UNISTR3.

Guenther

15 years agos3-rpc_client: remove unused CLI_DO_RPC_WERR macro.
Günther Deschner [Wed, 18 Mar 2009 17:10:01 +0000 (18:10 +0100)]
s3-rpc_client: remove unused CLI_DO_RPC_WERR macro.

Guenther

15 years agos4 libcli: Add back Longhorn beta dialect as a constant
Zach Loafman [Wed, 18 Mar 2009 17:36:59 +0000 (10:36 -0700)]
s4 libcli: Add back Longhorn beta dialect as a constant

Also tweak how the dialect array and count is initialized.

15 years agos3-smbcontrol: use correct PRINTER_NOTIFY flags.
Günther Deschner [Wed, 18 Mar 2009 16:45:30 +0000 (17:45 +0100)]
s3-smbcontrol: use correct PRINTER_NOTIFY flags.

Guenther

15 years agospoolss: add my copyright.
Günther Deschner [Wed, 25 Feb 2009 13:33:59 +0000 (14:33 +0100)]
spoolss: add my copyright.

Guenther

15 years agos3-spoolss: remove include/rpc_spoolss.h.
Günther Deschner [Wed, 18 Mar 2009 15:38:36 +0000 (16:38 +0100)]
s3-spoolss: remove include/rpc_spoolss.h.

Guenther

15 years agos3-spoolss: remove rpc_server/srv_spoolss.c alltogether.
Günther Deschner [Tue, 17 Mar 2009 23:45:35 +0000 (00:45 +0100)]
s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.

Guenther

15 years agos3-spoolss: remove rpc_parse/parse_spoolss.c alltogether.
Günther Deschner [Tue, 17 Mar 2009 23:43:31 +0000 (00:43 +0100)]
s3-spoolss: remove rpc_parse/parse_spoolss.c alltogether.

Good-Bye, last hand-marshalled rpc functions, rest in peace.

Guenther

15 years agos3-spoolss: remove old spoolss_EnumPrinterDataEx.
Günther Deschner [Tue, 17 Mar 2009 23:41:47 +0000 (00:41 +0100)]
s3-spoolss: remove old spoolss_EnumPrinterDataEx.

Guenther

15 years agos3-spoolss: use pidl for _spoolss_EnumPrinterDataEx.
Günther Deschner [Tue, 17 Mar 2009 23:38:40 +0000 (00:38 +0100)]
s3-spoolss: use pidl for _spoolss_EnumPrinterDataEx.

Please note that this has been the last call in samba3 that was
using hand-marshalled rpc. With this commit all named pipe rpc services
in samba3 have now fully moved to pidl generated code :-)

Guenther

15 years agos3-spoolss: use printer and job notify enums provided by idl.
Günther Deschner [Wed, 18 Mar 2009 15:37:33 +0000 (16:37 +0100)]
s3-spoolss: use printer and job notify enums provided by idl.

Guenther

15 years agos3-spoolss: fix spoolss server after spoolss_Field changes.
Günther Deschner [Wed, 18 Mar 2009 15:16:25 +0000 (16:16 +0100)]
s3-spoolss: fix spoolss server after spoolss_Field changes.

Guenther

15 years agos3-rpcclient: fix spoolss notify test after spoolss_Field changes.
Günther Deschner [Wed, 18 Mar 2009 15:10:52 +0000 (16:10 +0100)]
s3-rpcclient: fix spoolss notify test after spoolss_Field changes.

Guenther

15 years agos4-smbtorture: fix spoolss notify test after spoolss_Field changes.
Günther Deschner [Wed, 18 Mar 2009 15:10:11 +0000 (16:10 +0100)]
s4-smbtorture: fix spoolss notify test after spoolss_Field changes.

Guenther

15 years agospoolss: add custom ndr_print_spoolss_Field.
Günther Deschner [Wed, 18 Mar 2009 15:06:40 +0000 (16:06 +0100)]
spoolss: add custom ndr_print_spoolss_Field.

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Wed, 18 Mar 2009 14:48:48 +0000 (15:48 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: make spoolss_Field a nodiscriminant union of 2 sets of notify flag enums.
Günther Deschner [Wed, 18 Mar 2009 14:48:06 +0000 (15:48 +0100)]
spoolss: make spoolss_Field a nodiscriminant union of 2 sets of notify flag enums.

Guenther

15 years agos3-rpc_parse: move prs_uint64 to rpc_parse/parse_prs.c.
Günther Deschner [Wed, 18 Mar 2009 14:05:44 +0000 (15:05 +0100)]
s3-rpc_parse: move prs_uint64 to rpc_parse/parse_prs.c.

Guenther

15 years agos3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.
Günther Deschner [Wed, 18 Mar 2009 12:22:51 +0000 (13:22 +0100)]
s3-spoolss: remove custom syntax_spoolss and use the syntax defined in IDL.

Guenther

15 years agos3-printing: use marshall/unmarshall_sec_desc_buf in sec_desc_upg_fn().
Günther Deschner [Wed, 18 Mar 2009 11:46:40 +0000 (12:46 +0100)]
s3-printing: use marshall/unmarshall_sec_desc_buf in sec_desc_upg_fn().

Guenther

15 years agos3-spoolss: add registry_value_to_printer_enum_value.
Günther Deschner [Wed, 18 Mar 2009 10:25:15 +0000 (11:25 +0100)]
s3-spoolss: add registry_value_to_printer_enum_value.

Guenther

15 years agos3-spoolss: add SPOOLSS_BUFFER_ARRAY macro.
Günther Deschner [Wed, 18 Mar 2009 10:22:11 +0000 (11:22 +0100)]
s3-spoolss: add SPOOLSS_BUFFER_ARRAY macro.

Guenther

15 years agospoolss: add ndr_size_spoolss_EnumPrinterDataEx_info in spoolss helper.
Günther Deschner [Wed, 18 Mar 2009 10:11:05 +0000 (11:11 +0100)]
spoolss: add ndr_size_spoolss_EnumPrinterDataEx_info in spoolss helper.

Guenther

15 years agospoolss: rename NDR_SPOOLSS_SIZE_ENUM macro to NDR_SPOOLSS_SIZE_ENUM_LEVEL in
Günther Deschner [Wed, 18 Mar 2009 10:10:25 +0000 (11:10 +0100)]
spoolss: rename NDR_SPOOLSS_SIZE_ENUM macro to NDR_SPOOLSS_SIZE_ENUM_LEVEL in
spoolss helper.

Guenther

15 years agos4-smbtorture: fix spoolss_EnumPrinterKey callers in RPC-SPOOLSS-WIN test.
Günther Deschner [Wed, 18 Mar 2009 02:00:37 +0000 (03:00 +0100)]
s4-smbtorture: fix spoolss_EnumPrinterKey callers in RPC-SPOOLSS-WIN test.

Kai, please check.

Guenther

15 years agospoolss: fix ndr_push_spoolss_EnumPrinterDataEx.
Günther Deschner [Wed, 18 Mar 2009 02:11:37 +0000 (03:11 +0100)]
spoolss: fix ndr_push_spoolss_EnumPrinterDataEx.

Guenther

15 years agos3:lib Use push_ucs2_talloc() in ms_fnmatch()
Andrew Bartlett [Wed, 18 Mar 2009 07:05:17 +0000 (18:05 +1100)]
s3:lib Use push_ucs2_talloc() in ms_fnmatch()

15 years agos3:smbldap convert the easy cases to push_utf8_talloc()
Andrew Bartlett [Wed, 18 Mar 2009 07:04:35 +0000 (18:04 +1100)]
s3:smbldap convert the easy cases to push_utf8_talloc()

15 years agos3:charcnv remove now unused malloc() based conversion functions
Andrew Bartlett [Wed, 18 Mar 2009 06:36:35 +0000 (17:36 +1100)]
s3:charcnv remove now unused malloc() based conversion functions

15 years agos3:libads Make ads_get_dn() take a talloc context
Andrew Bartlett [Wed, 18 Mar 2009 06:35:03 +0000 (17:35 +1100)]
s3:libads Make ads_get_dn() take a talloc context

Also remove ads_memfree(), which was only ever a wrapper around
SAFE_FREE, used only to free the DN from ads_get_ds().

This actually makes libgpo more consistant, as it mixed a talloc and a
malloc based string on the same element.

Andrew Bartlett

15 years agos3:winbindd: accept new connections via fd events
Stefan Metzmacher [Mon, 16 Mar 2009 16:27:30 +0000 (17:27 +0100)]
s3:winbindd: accept new connections via fd events

metze

15 years agos3:winbindd: move non event related code out of process_loop() in the the caller
Stefan Metzmacher [Mon, 16 Mar 2009 15:14:20 +0000 (16:14 +0100)]
s3:winbindd: move non event related code out of process_loop() in the the caller

metze

15 years agos3:winbindd: remove unused close_winbindd_socket() function
Stefan Metzmacher [Mon, 16 Mar 2009 15:06:12 +0000 (16:06 +0100)]
s3:winbindd: remove unused close_winbindd_socket() function

metze

15 years agos3:smbd: use tevent_loop_once() in the parent event loop
Stefan Metzmacher [Mon, 16 Mar 2009 14:55:39 +0000 (15:55 +0100)]
s3:smbd: use tevent_loop_once() in the parent event loop

metze

15 years agos3:printing: use tevent_loop_wait() instead of manual looping
Stefan Metzmacher [Mon, 16 Mar 2009 14:47:57 +0000 (15:47 +0100)]
s3:printing: use tevent_loop_wait() instead of manual looping

metze

15 years agos3:printing: use a fd event to monitor the pipe to the parent
Stefan Metzmacher [Mon, 16 Mar 2009 13:56:11 +0000 (14:56 +0100)]
s3:printing: use a fd event to monitor the pipe to the parent

metze

15 years agos3:smbd: don't exit the parent when we have no connections
Stefan Metzmacher [Mon, 16 Mar 2009 13:48:40 +0000 (14:48 +0100)]
s3:smbd: don't exit the parent when we have no connections

This code path can't really happen anymore, because
launchd support was removed with commit e5a951325a6cac8567af3a66de6d2df577508ae4.
But it's confusing to have that code there...

metze

15 years agos3:printing Convert nt_printer_publish_ads() to use talloc better
Andrew Bartlett [Wed, 18 Mar 2009 05:31:51 +0000 (16:31 +1100)]
s3:printing Convert nt_printer_publish_ads() to use talloc better

In particular, this removes one more user of pull_utf8_allocate()

Andrew Bartlett

15 years agos3:kerberos Rework smb_krb5_unparse_name() to take a talloc context
Andrew Bartlett [Wed, 18 Mar 2009 05:23:27 +0000 (16:23 +1100)]
s3:kerberos Rework smb_krb5_unparse_name() to take a talloc context

15 years agoConvert Samba3 util_str to use push_ucs2_talloc and remove duplicate fns
Andrew Bartlett [Wed, 18 Mar 2009 05:21:09 +0000 (16:21 +1100)]
Convert Samba3 util_str to use push_ucs2_talloc and remove duplicate fns

15 years agos3:smbd Convert to use common strlen_m()
Andrew Bartlett [Wed, 18 Mar 2009 05:19:59 +0000 (16:19 +1100)]
s3:smbd Convert to use common strlen_m()

15 years agos3:smbtorture Convert charcnv torture suite to use push_ucs2_talloc()
Andrew Bartlett [Wed, 18 Mar 2009 05:19:19 +0000 (16:19 +1100)]
s3:smbtorture Convert charcnv torture suite to use push_ucs2_talloc()

15 years agos3:util_str Remove calls to pull_utf8_allocate()
Andrew Bartlett [Wed, 18 Mar 2009 04:29:43 +0000 (15:29 +1100)]
s3:util_str Remove calls to pull_utf8_allocate()

The end goal is to remove convert_string_allocate(), which is not
provided by the common lib/util/charcnv code.

Andrew Bartlett

15 years agos3:smbldap Remove smbldap_get_dn
Andrew Bartlett [Wed, 18 Mar 2009 04:29:02 +0000 (15:29 +1100)]
s3:smbldap Remove smbldap_get_dn

This removes one more caller to pull_utf8_allocate()

15 years agoConvert Samba3 to use the common lib/util/charset code (partial)
Andrew Bartlett [Wed, 18 Mar 2009 04:12:36 +0000 (15:12 +1100)]
Convert Samba3 to use the common lib/util/charset code (partial)

This parital commit has it's focus on converting Samba3 code to use
the common functions where possible, and exposes some of the
previously static common functions for use by what remains in
libsmb/charcnv.c

libsmb/charcnv.c contains the Samba-3 only wrapper functions still in use.

Andrew Bartlett

15 years agos3:safe_string No Samba3 code calls pull_string directly any more
Andrew Bartlett [Wed, 18 Mar 2009 03:22:34 +0000 (14:22 +1100)]
s3:safe_string No Samba3 code calls pull_string directly any more

This removes the unused macro

Andrew Bartlett

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge2
Andrew Bartlett [Wed, 18 Mar 2009 05:49:47 +0000 (16:49 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge2

15 years agos3-spoolss: use rpccli_spoolss_enumprinterdataex in ldap_printer.c.
Günther Deschner [Wed, 18 Mar 2009 01:33:18 +0000 (02:33 +0100)]
s3-spoolss: use rpccli_spoolss_enumprinterdataex in ldap_printer.c.

Guenther

15 years agos4-smbtorture: fix spoolss_EnumPrinterDataEx tests.
Günther Deschner [Wed, 18 Mar 2009 00:39:49 +0000 (01:39 +0100)]
s4-smbtorture: fix spoolss_EnumPrinterDataEx tests.

sorry, I could swear this did compile...

Guenther

15 years agos3-spoolss: remove old rpccli_spoolss_enumprinterdataex.
Günther Deschner [Tue, 17 Mar 2009 23:38:01 +0000 (00:38 +0100)]
s3-spoolss: remove old rpccli_spoolss_enumprinterdataex.

Guenther

15 years agos3-net: use rpccli_spoolss_enumprinterdataex.
Günther Deschner [Wed, 18 Mar 2009 00:06:22 +0000 (01:06 +0100)]
s3-net: use rpccli_spoolss_enumprinterdataex.

Guenther

15 years agos3-rpcclient: use rpccli_spoolss_enumprinterdataex wrapper.
Günther Deschner [Tue, 17 Mar 2009 22:45:16 +0000 (23:45 +0100)]
s3-rpcclient: use rpccli_spoolss_enumprinterdataex wrapper.

Guenther

15 years agos3-spoolss: add rpccli_spoolss_enumprinterdataex convenience wrapper.
Günther Deschner [Tue, 17 Mar 2009 22:39:00 +0000 (23:39 +0100)]
s3-spoolss: add rpccli_spoolss_enumprinterdataex convenience wrapper.

Guenther

15 years agospoolss: add ndr_push/pull_spoolss_EnumPrinterDataEx helper.
Günther Deschner [Tue, 17 Mar 2009 23:35:44 +0000 (00:35 +0100)]
spoolss: add ndr_push/pull_spoolss_EnumPrinterDataEx helper.

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Wed, 18 Mar 2009 00:08:38 +0000 (01:08 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: add spoolss_EnumPrinterDataEx triple call.
Günther Deschner [Tue, 17 Mar 2009 23:36:31 +0000 (00:36 +0100)]
spoolss: add spoolss_EnumPrinterDataEx triple call.

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Wed, 18 Mar 2009 00:07:49 +0000 (01:07 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: fix spoolss_PrinterEnumValues w.r.t. size calculation of PrinterData.
Günther Deschner [Tue, 17 Mar 2009 23:36:54 +0000 (00:36 +0100)]
spoolss: fix spoolss_PrinterEnumValues w.r.t. size calculation of PrinterData.

Guenther

15 years agoMissing break in conversion function prevents tdb password database update.
Alexander Zagrebin [Tue, 17 Mar 2009 22:38:33 +0000 (15:38 -0700)]
Missing break in conversion function prevents tdb password database update.

15 years agobuild: fix detection of netinet/ip.h on FreeBSD
Timur [Tue, 17 Mar 2009 21:46:53 +0000 (22:46 +0100)]
build: fix detection of netinet/ip.h on FreeBSD

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agobuild: format the header check for netinet/ip.h more nicely
Timur [Tue, 17 Mar 2009 21:45:28 +0000 (22:45 +0100)]
build: format the header check for netinet/ip.h more nicely

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agoRemove the global "struct cm_cred_struct" and associated calls, make
Jeremy Allison [Tue, 17 Mar 2009 21:53:06 +0000 (14:53 -0700)]
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.

15 years agos3-rpcclient: say that we are displaying a REG_MULTI_SZ in display_reg_value().
Günther Deschner [Tue, 17 Mar 2009 19:50:59 +0000 (20:50 +0100)]
s3-rpcclient: say that we are displaying a REG_MULTI_SZ in display_reg_value().

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Tue, 17 Mar 2009 19:52:58 +0000 (20:52 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: add spoolss_PrinterEnumValues.
Günther Deschner [Mon, 16 Mar 2009 20:09:36 +0000 (21:09 +0100)]
spoolss: add spoolss_PrinterEnumValues.

Guenther

15 years agos3: Fix bugs in the detection of the GNU ld version (Bug #6147)
Steve Langasek [Tue, 17 Mar 2009 21:08:28 +0000 (22:08 +0100)]
s3: Fix bugs in the detection of the GNU ld version (Bug #6147)

This bug results in a failure to use linker scripts to limit the set of symbols
exported by our shared libraries.

Signed-off-by: Michael Adam <obnox@samba.org>
15 years agos4 torture: Win7 has a slightly different allowed access mask
Zach Loafman [Mon, 16 Mar 2009 16:24:06 +0000 (09:24 -0700)]
s4 torture: Win7 has a slightly different allowed access mask

Still investigating.

15 years agos4 torture: Add a string version for NT_STATUS_WIN7_INVALID_RANGE
Zach Loafman [Fri, 13 Mar 2009 16:04:33 +0000 (09:04 -0700)]
s4 torture: Add a string version for NT_STATUS_WIN7_INVALID_RANGE

Also submitted a request to cifs-protocol for a real name for this
thing. Use win7 target logic in smb2 lock test, SMB2-LOCK now passes
against Win7.

15 years agos4 libcli: Add SMB2.1 dialect to libcli
Zach Loafman [Thu, 12 Mar 2009 15:32:58 +0000 (08:32 -0700)]
s4 libcli: Add SMB2.1 dialect to libcli

Negotiate 2.1 if possible, leave negotiate results in
transport->negotiate.dialect_revision.

15 years agoFix #6130: Don't crash in winbindd_rpc lookup_groupmem() on unmapped members
Volker Lendecke [Mon, 16 Mar 2009 12:17:04 +0000 (13:17 +0100)]
Fix #6130: Don't crash in winbindd_rpc lookup_groupmem() on unmapped members

Thanks to François Legal <devel@thom.fr.eu.org> for reporting this bug

15 years agos4:build: require tevent 0.9.5
Stefan Metzmacher [Tue, 17 Mar 2009 19:18:31 +0000 (20:18 +0100)]
s4:build: require tevent 0.9.5

metze

15 years agotevent: change version to 0.9.5 after the ABI has changed
Stefan Metzmacher [Tue, 17 Mar 2009 19:18:01 +0000 (20:18 +0100)]
tevent: change version to 0.9.5 after the ABI has changed

metze

15 years agotevent: store the location where a request was finished
Stefan Metzmacher [Tue, 17 Mar 2009 19:13:34 +0000 (20:13 +0100)]
tevent: store the location where a request was finished

This is very useful to find bugs.
You can use 'p *req' in gdb to show where
tevent_req_done(), tevent_req_error() or tevent_req_nomem()
was called.

metze

15 years agotevent: use an immediate event as trigger for tevent_queue
Stefan Metzmacher [Tue, 17 Mar 2009 09:42:55 +0000 (10:42 +0100)]
tevent: use an immediate event as trigger for tevent_queue

metze

15 years agotevent: use an immediate event fot tevent_req_post()
Stefan Metzmacher [Tue, 17 Mar 2009 09:18:34 +0000 (10:18 +0100)]
tevent: use an immediate event fot tevent_req_post()

Now tevent_req_post() never fails

metze

15 years agotevent: use TALLOC_FREE() in tevent_req.c
Stefan Metzmacher [Tue, 17 Mar 2009 09:17:50 +0000 (10:17 +0100)]
tevent: use TALLOC_FREE() in tevent_req.c

metze

15 years agos3:events: add support for immediate events
Stefan Metzmacher [Mon, 16 Mar 2009 14:06:52 +0000 (15:06 +0100)]
s3:events: add support for immediate events

metze

15 years agotevent: add support for immediate events
Stefan Metzmacher [Fri, 13 Mar 2009 14:47:33 +0000 (15:47 +0100)]
tevent: add support for immediate events

They're like directly triggered timed events,
but you can preallocated them and scheduling them
will not fail.

metze

15 years agos3:events: make use of tevent_common_loop_wait()
Stefan Metzmacher [Mon, 16 Mar 2009 13:45:42 +0000 (14:45 +0100)]
s3:events: make use of tevent_common_loop_wait()

metze

15 years agotevent: add tevent_common_loop_wait() helper function and use it
Stefan Metzmacher [Mon, 16 Mar 2009 13:15:07 +0000 (14:15 +0100)]
tevent: add tevent_common_loop_wait() helper function and use it

tevent_loop_wait should do the same for all backends.
It should loop as long as we have pending events.

metze

15 years agotevent: check signal events first in event_loop_once
Stefan Metzmacher [Mon, 16 Mar 2009 11:45:48 +0000 (12:45 +0100)]
tevent: check signal events first in event_loop_once

We also check for signal events directly before and after
the select/epoll calls.

metze

15 years agotevent: let tevent_loop_once() just run one fd event
Stefan Metzmacher [Mon, 16 Mar 2009 11:34:23 +0000 (12:34 +0100)]
tevent: let tevent_loop_once() just run one fd event

This makes the logic much simpler for the callers,
and matches the samba3 behavior.

If needed we can add performance tunning for tevent_loop_wait()
later.

metze

15 years agos3-spoolss: remove unused RPC_BUFFER definition.
Günther Deschner [Tue, 17 Mar 2009 17:36:43 +0000 (18:36 +0100)]
s3-spoolss: remove unused RPC_BUFFER definition.

Guenther

15 years agos3-spoolss: remove (disabled) enum_all_printers_info_1_remote.
Günther Deschner [Tue, 17 Mar 2009 17:34:45 +0000 (18:34 +0100)]
s3-spoolss: remove (disabled) enum_all_printers_info_1_remote.

Jerry, please check. I do not understand how this could work and in
it's current form, we cannot make this even compile anymore, I'm afraid :)
I think it is safe to remove.

Guenther

15 years agos4-smbtorture: fix spoolss notify test for notify type changes.
Günther Deschner [Tue, 17 Mar 2009 17:03:36 +0000 (18:03 +0100)]
s4-smbtorture: fix spoolss notify test for notify type changes.

Guenther

15 years agos3-spoolss: remove PRINTER_NOTIFY_TYPE and JOB_NOTIFY_TYPE now defined in IDL.
Günther Deschner [Tue, 17 Mar 2009 17:03:10 +0000 (18:03 +0100)]
s3-spoolss: remove PRINTER_NOTIFY_TYPE and JOB_NOTIFY_TYPE now defined in IDL.

Guenther

15 years agos3-spoolss: remove SPL Port definitions now in IDL.
Günther Deschner [Tue, 17 Mar 2009 16:31:18 +0000 (17:31 +0100)]
s3-spoolss: remove SPL Port definitions now in IDL.

Guenther

15 years agos3-spoolss: remove PRIORITY defines, that were never used.
Günther Deschner [Tue, 17 Mar 2009 16:25:07 +0000 (17:25 +0100)]
s3-spoolss: remove PRIORITY defines, that were never used.

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Tue, 17 Mar 2009 16:24:47 +0000 (17:24 +0100)]
s3: re-run make samba3-idl.

Guenther

15 years agospoolss: use PRINTER_NOTIFY_TYPE and JOB_NOTIFY_TYPE in favor of "old" s4 defines.
Günther Deschner [Tue, 17 Mar 2009 17:01:11 +0000 (18:01 +0100)]
spoolss: use PRINTER_NOTIFY_TYPE and JOB_NOTIFY_TYPE in favor of "old" s4 defines.

Guenther

15 years agospoolss: add SPL Port definitions to IDL.
Günther Deschner [Tue, 17 Mar 2009 16:30:07 +0000 (17:30 +0100)]
spoolss: add SPL Port definitions to IDL.

Guenther