bbaumbach/samba-autobuild/.git
15 years agos3/packaging: Add idmap_hash and idmap_adex to the list of built modules.
Karolin Seeger [Wed, 8 Apr 2009 15:49:21 +0000 (17:49 +0200)]
s3/packaging: Add idmap_hash and idmap_adex to the list of built modules.

Karolin

15 years agoMake the schema_inferiors generation code to compile
Andrew Bartlett [Wed, 8 Apr 2009 13:18:49 +0000 (23:18 +1000)]
Make the schema_inferiors generation code to compile

Sadly it still segfaults at this stage

Andrew Bartlett

15 years agoRework util_strlist prototypes to use a bit more and less const
Andrew Bartlett [Wed, 8 Apr 2009 13:18:13 +0000 (23:18 +1000)]
Rework util_strlist prototypes to use a bit more and less const

Hopefully this produces less warnings, but it might produce more...

Andrew Bartlett

15 years agos3-rpc-server: remove unused rpc_server/srv_util.c file.
Günther Deschner [Wed, 8 Apr 2009 12:37:40 +0000 (14:37 +0200)]
s3-rpc-server: remove unused rpc_server/srv_util.c file.

Guenther

15 years agos3-selftest: As Samba3 now passes RPC-SPOOLSS-WIN enable it against ourself.
Günther Deschner [Thu, 19 Mar 2009 22:38:00 +0000 (23:38 +0100)]
s3-selftest: As Samba3 now passes RPC-SPOOLSS-WIN enable it against ourself.

Guenther

15 years agos4-smbtorture: Small fix for RPC-SPOOLSS-WIN to deal with driver-less printers.
Günther Deschner [Wed, 8 Apr 2009 11:49:14 +0000 (13:49 +0200)]
s4-smbtorture: Small fix for RPC-SPOOLSS-WIN to deal with driver-less printers.

The getdriver query failure should only be critical when there is actually a
driver associated to a printer.

Guenther

15 years agos3-selftest: add root for make test as well (not only make selftest).
Günther Deschner [Wed, 8 Apr 2009 11:11:16 +0000 (13:11 +0200)]
s3-selftest: add root for make test as well (not only make selftest).

Guenther

15 years agos3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().
Günther Deschner [Wed, 8 Apr 2009 10:47:10 +0000 (12:47 +0200)]
s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().

Guenther

15 years agos3-selftest: Samba3 passes RPC-SVCCTL so enable it during make test.
Günther Deschner [Wed, 8 Apr 2009 01:00:16 +0000 (03:00 +0200)]
s3-selftest: Samba3 passes RPC-SVCCTL so enable it during make test.

Guenther

15 years agoselftest: add a fake root user to nss_wrapper_passwd in s3.
Günther Deschner [Wed, 8 Apr 2009 08:15:01 +0000 (10:15 +0200)]
selftest: add a fake root user to nss_wrapper_passwd in s3.

Needed to make some server calls to get_root_nt_token() succeed.
make selftest/make test gurus, please check.

Guenther

15 years agosvcctl: use offered/needed for buffer sizes as in spoolss.
Günther Deschner [Wed, 8 Apr 2009 00:11:27 +0000 (02:11 +0200)]
svcctl: use offered/needed for buffer sizes as in spoolss.

Guenther

15 years agos3-svcctl: no need to define SVCCTL_NUM_INTERNAL_SERVICES twice in a file.
Günther Deschner [Tue, 7 Apr 2009 23:52:28 +0000 (01:52 +0200)]
s3-svcctl: no need to define SVCCTL_NUM_INTERNAL_SERVICES twice in a file.

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()

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agos3-spoolss: set servername to global_myname() in set_printer_hnd_name().
Günther Deschner [Thu, 2 Apr 2009 14:15:16 +0000 (16:15 +0200)]
s3-spoolss: set servername to global_myname() in set_printer_hnd_name().

This allows spoolss_OpenPrinterEx to open a printer by printername.
Now the Samba3 spoolss server passes the RPC-SPOOLSS-WIN test.

Guenther

15 years agos3:charcnv Remove unused unistrcpy() and unistrlen()
Andrew Bartlett [Thu, 19 Mar 2009 08:20:08 +0000 (19:20 +1100)]
s3:charcnv Remove unused unistrcpy() and unistrlen()

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agos3:rpc_parse remove unused prs_unistr2()
Andrew Bartlett [Thu, 19 Mar 2009 08:18:14 +0000 (19:18 +1100)]
s3:rpc_parse remove unused prs_unistr2()

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agos3:charcnv Remove unused unistr2 functions
Andrew Bartlett [Thu, 19 Mar 2009 08:14:36 +0000 (19:14 +1100)]
s3:charcnv Remove unused unistr2 functions

Natrually, the hard work to make these unsued was done by GD, not me :-)

Andrew Bartlett

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agos3:charcnv Remove unused ucs2_to_unistr2()
Andrew Bartlett [Thu, 19 Mar 2009 08:11:15 +0000 (19:11 +1100)]
s3:charcnv Remove unused ucs2_to_unistr2()

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agos3/docs: Raise version number up to 3.5.
Karolin Seeger [Tue, 7 Apr 2009 18:45:45 +0000 (20:45 +0200)]
s3/docs: Raise version number up to 3.5.

Karolin

15 years agos3/popt.h: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 18:01:27 +0000 (20:01 +0200)]
s3/popt.h: Fix typo.

Karolin

15 years agos3/loadparm: Fiy typos.
Karolin Seeger [Tue, 7 Apr 2009 18:00:47 +0000 (20:00 +0200)]
s3/loadparm: Fiy typos.

Karolin

15 years agos3/gpo_ldap: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:58:47 +0000 (19:58 +0200)]
s3/gpo_ldap: Fix typo.

Karolin

15 years agos3/smbconf_reg: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:58:14 +0000 (19:58 +0200)]
s3/smbconf_reg: Fix typo.

Karolin

15 years agos3/docs: Fix typo.
Karolin Seeger [Tue, 7 Apr 2009 17:55:45 +0000 (19:55 +0200)]
s3/docs: Fix typo.

Karolin

15 years agos3 onefs: Fix case-insensitivity for mangled names
Tim Prouty [Tue, 7 Apr 2009 00:56:50 +0000 (00:56 +0000)]
s3 onefs: Fix case-insensitivity for mangled names

onefs_get_real_filename needs to demangle the filename before doing
the case-insensitive estat

15 years agos3 oplocks: Add back procid_str to debug message
Tim Prouty [Tue, 7 Apr 2009 16:49:55 +0000 (09:49 -0700)]
s3 oplocks: Add back procid_str to debug message

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()

Signed-off-by: Günther Deschner <gd@samba.org>
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

Signed-off-by: Günther Deschner <gd@samba.org>
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()

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agofirst cut at a C version of the possible inferiors code
Andrew Tridgell [Tue, 7 Apr 2009 06:34:36 +0000 (16:34 +1000)]
first cut at a C version of the possible inferiors code

15 years agodon't load @ATTRIBUTES if we have an override handler in place
Andrew Tridgell [Tue, 7 Apr 2009 06:34:18 +0000 (16:34 +1000)]
don't load @ATTRIBUTES if we have an override handler in place

15 years agofixed internal handling of attribute deletion
Andrew Tridgell [Tue, 7 Apr 2009 06:33:54 +0000 (16:33 +1000)]
fixed internal handling of attribute deletion

15 years agoadded a str_list_append() function
Andrew Tridgell [Tue, 7 Apr 2009 06:33:26 +0000 (16:33 +1000)]
added a str_list_append() function

15 years agos3-libads: avoid NULL talloc context with ads_get_dn().
Günther Deschner [Mon, 6 Apr 2009 22:40:46 +0000 (00:40 +0200)]
s3-libads: avoid NULL talloc context with ads_get_dn().

Guenther

15 years agos3: re-run make samba3-idl.
Günther Deschner [Mon, 6 Apr 2009 23:12:34 +0000 (01:12 +0200)]
s3: re-run make samba3-idl.

Guenther

15 years agosvcctl: Fix svcctl_ControlsAccepted bitmask.
Günther Deschner [Mon, 6 Apr 2009 23:11:44 +0000 (01:11 +0200)]
svcctl: Fix svcctl_ControlsAccepted bitmask.

Never ever have 0 value in a bitmask...

pidl should generate at least a warning about those things.

Guenther

15 years agos3-svcctl: Fix _svcctl_EnumServicesStatusW() crash bug on too small buffer.
Günther Deschner [Mon, 6 Apr 2009 23:10:41 +0000 (01:10 +0200)]
s3-svcctl: Fix _svcctl_EnumServicesStatusW() crash bug on too small buffer.

Guenther

15 years agos3 onefs: Simplify level 2 oplock self-contention
Tim Prouty [Fri, 3 Apr 2009 01:24:43 +0000 (18:24 -0700)]
s3 onefs: Simplify level 2 oplock self-contention

This removes all oplock dependence on locking.tdb

15 years agos3 oplocks: Refactor level II oplock contention
Tim Prouty [Fri, 3 Apr 2009 01:33:30 +0000 (18:33 -0700)]
s3 oplocks: Refactor level II oplock contention

15 years agos3-samr: add support for _samr_Connect3() while planning to pass a s4 smbtorture...
Günther Deschner [Fri, 3 Apr 2009 19:26:14 +0000 (21:26 +0200)]
s3-samr: add support for _samr_Connect3() while planning to pass a s4 smbtorture test.

Guenther

15 years agoCorrect sync wrappers in cli_pipe.c
Volker Lendecke [Mon, 6 Apr 2009 18:52:04 +0000 (20:52 +0200)]
Correct sync wrappers in cli_pipe.c

15 years agoAdd a bad hack to enable level 2 oplocks in torture_open_connection_share
Volker Lendecke [Mon, 6 Apr 2009 18:45:08 +0000 (20:45 +0200)]
Add a bad hack to enable level 2 oplocks in torture_open_connection_share

15 years agoMake cli_oplock_ack async
Volker Lendecke [Mon, 6 Apr 2009 18:41:48 +0000 (20:41 +0200)]
Make cli_oplock_ack async

15 years agoAdd async oplock waiter
Volker Lendecke [Mon, 6 Apr 2009 14:06:04 +0000 (16:06 +0200)]
Add async oplock waiter

15 years agoNever hand out 0xffff as a mid
Volker Lendecke [Mon, 6 Apr 2009 12:51:34 +0000 (14:51 +0200)]
Never hand out 0xffff as a mid

This is used for oplock replies

15 years agoRemove async_req based async libsmb infrastructure
Volker Lendecke [Sun, 5 Apr 2009 21:28:01 +0000 (23:28 +0200)]
Remove async_req based async libsmb infrastructure

15 years agoRe-add the CHAIN1 test
Volker Lendecke [Sun, 5 Apr 2009 21:20:45 +0000 (23:20 +0200)]
Re-add the CHAIN1 test

15 years agoConvert cli_open to tevent_req
Volker Lendecke [Sun, 5 Apr 2009 21:17:55 +0000 (23:17 +0200)]
Convert cli_open to tevent_req

15 years agoConvert cli_close to tevent_req
Volker Lendecke [Sun, 29 Mar 2009 11:46:24 +0000 (13:46 +0200)]
Convert cli_close to tevent_req

15 years agoStreamline cli_push sync wrapper
Volker Lendecke [Sun, 5 Apr 2009 04:33:24 +0000 (06:33 +0200)]
Streamline cli_push sync wrapper

15 years agoConvert cli_write_andx to tevent_req
Volker Lendecke [Sun, 29 Mar 2009 11:28:18 +0000 (13:28 +0200)]
Convert cli_write_andx to tevent_req

15 years agoStreamline cli_pull sync wrapper
Volker Lendecke [Sun, 5 Apr 2009 04:33:17 +0000 (06:33 +0200)]
Streamline cli_pull sync wrapper

15 years agoConvert cli_read_andx to tevent_req
Volker Lendecke [Sun, 15 Mar 2009 08:54:23 +0000 (09:54 +0100)]
Convert cli_read_andx to tevent_req

15 years agoConvert cli_ntcreate to tevent_req
Volker Lendecke [Sun, 29 Mar 2009 18:00:58 +0000 (20:00 +0200)]
Convert cli_ntcreate to tevent_req

15 years agoConvert cli_tcon_andx to tevent_req
Volker Lendecke [Sun, 29 Mar 2009 17:47:18 +0000 (19:47 +0200)]
Convert cli_tcon_andx to tevent_req

15 years agoConvert cli_negprot to tevent_req
Volker Lendecke [Sun, 29 Mar 2009 16:59:56 +0000 (18:59 +0200)]
Convert cli_negprot to tevent_req

15 years agoConvert cli_session_setup_guest to tevent_req
Volker Lendecke [Sun, 29 Mar 2009 15:42:13 +0000 (17:42 +0200)]
Convert cli_session_setup_guest to tevent_req

15 years agoConvert cli_trans to tevent_req
Volker Lendecke [Sun, 5 Apr 2009 18:51:52 +0000 (20:51 +0200)]
Convert cli_trans to tevent_req

15 years agoConvert cli_echo to tevent_req
Volker Lendecke [Sun, 5 Apr 2009 18:48:16 +0000 (20:48 +0200)]
Convert cli_echo to tevent_req

15 years agoRemove the CHAIN1 test -- will come back later
Volker Lendecke [Sun, 29 Mar 2009 21:16:34 +0000 (23:16 +0200)]
Remove the CHAIN1 test -- will come back later

15 years agoAdd new async libsmb infrastructure
Volker Lendecke [Sun, 5 Apr 2009 18:18:45 +0000 (20:18 +0200)]
Add new async libsmb infrastructure

I know this is just yet another iteration, but I like this one much better than
the one that exists right now :-)

It will do trans and echo requests without a _recv helper and without
unnecessary memcpy().

15 years agoAdd read_smb_send/recv, dumping keepalives
Volker Lendecke [Sun, 5 Apr 2009 17:58:20 +0000 (19:58 +0200)]
Add read_smb_send/recv, dumping keepalives

15 years agotsocket: reduce size of dummy variable
Stefan Metzmacher [Mon, 6 Apr 2009 14:35:56 +0000 (16:35 +0200)]
tsocket: reduce size of dummy variable

metze

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

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agotsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv()
Stefan Metzmacher [Fri, 3 Apr 2009 12:29:51 +0000 (14:29 +0200)]
tsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv()

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

Signed-off-by: Günther Deschner <gd@samba.org>
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()

Signed-off-by: Günther Deschner <gd@samba.org>
15 years agoMake some functions static to vfs_gpfs.c
Volker Lendecke [Sun, 5 Apr 2009 05:32:03 +0000 (07:32 +0200)]
Make some functions static to vfs_gpfs.c

15 years agoAdd prototype for smbd_gpfs_get_realfilename_path
Volker Lendecke [Sun, 5 Apr 2009 05:31:47 +0000 (07:31 +0200)]
Add prototype for smbd_gpfs_get_realfilename_path

15 years agoFix two c++ warnings in vfs_gpfs.c
Volker Lendecke [Sun, 5 Apr 2009 05:31:30 +0000 (07:31 +0200)]
Fix two c++ warnings in vfs_gpfs.c

15 years agos3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.
Günther Deschner [Mon, 6 Apr 2009 10:45:46 +0000 (12:45 +0200)]
s3-examples: Fix Bug #6205. Correct sample smb.conf share configuration.

Thanks to Jeffrey Riaboy <dakusan@castledragmire.com>.

Guenther

15 years agoImprove formatting in Python file.
Jelmer Vernooij [Sun, 5 Apr 2009 21:03:13 +0000 (23:03 +0200)]
Improve formatting in Python file.

15 years agoMake valid_netbios_name() check a bit stricter.
Jelmer Vernooij [Sun, 5 Apr 2009 21:17:43 +0000 (23:17 +0200)]
Make valid_netbios_name() check a bit stricter.

15 years agoUse the server config file for smbpasswd -a user in make test
Volker Lendecke [Sun, 5 Apr 2009 15:13:02 +0000 (17:13 +0200)]
Use the server config file for smbpasswd -a user in make test

Without this, smbpasswd generated a SID for the netbios name TORTURE_6. This SID
somehow ended up in the user's token for quite a number of tests, leading to
NT_STATUS_ACCESS_DENIED. I haven't fully understood what is going on here, but
with this patch I could not reproduce the ACCESS_DENIED anymore. It might be
coincidence and this patch does not fix anything, but for me it does not really
hurt either.

Metze, please check!

Volker

15 years agoRemove a silly check
Volker Lendecke [Sun, 5 Apr 2009 15:01:57 +0000 (17:01 +0200)]
Remove a silly check

This does not increase security, and if later error messages suck, we have to
fix those.

15 years agoRemove async_req dependency from cli_pull_trans
Volker Lendecke [Sat, 28 Mar 2009 13:57:57 +0000 (14:57 +0100)]
Remove async_req dependency from cli_pull_trans

15 years agoFix smbd crash for close_on_completion
Volker Lendecke [Sat, 28 Mar 2009 18:58:45 +0000 (19:58 +0100)]
Fix smbd crash for close_on_completion

handle_trans() can talloc_free "conn" if the client requests
close_on_completion. "state" is a talloc_child of conn, so it will be gone when
we later free state->data et al.

15 years agoKeep the forked-smbd stdout reader around longer
Volker Lendecke [Thu, 12 Feb 2009 11:12:04 +0000 (12:12 +0100)]
Keep the forked-smbd stdout reader around longer

15 years agoEnsure 0-termination for the forked-smbd debug output
Volker Lendecke [Thu, 12 Feb 2009 11:11:16 +0000 (12:11 +0100)]
Ensure 0-termination for the forked-smbd debug output

15 years agoPass the current debuglevel down to the forked smbd
Volker Lendecke [Thu, 12 Feb 2009 19:41:49 +0000 (20:41 +0100)]
Pass the current debuglevel down to the forked smbd

15 years agoUse recv instead of read in read_packet_handler
Volker Lendecke [Sun, 5 Apr 2009 11:26:42 +0000 (13:26 +0200)]
Use recv instead of read in read_packet_handler

This way the socket wrapper pcap file also sees the replies :-)

15 years agos3-samr: add support for setting password hashes via samr_SetUserInfo level 21.
Günther Deschner [Tue, 9 Dec 2008 12:25:59 +0000 (13:25 +0100)]
s3-samr: add support for setting password hashes via samr_SetUserInfo level 21.

Guenther

15 years agos3-nsswitch: Fix Bug #6238 2nd part. zero blob pointer in wbcLogoffUserParams.
Günther Deschner [Fri, 3 Apr 2009 10:50:50 +0000 (12:50 +0200)]
s3-nsswitch: Fix Bug #6238 2nd part. zero blob pointer in wbcLogoffUserParams.

Patch from Rashid N. Achilov <citycat4@ngs.ru>.

Guenther

15 years agoUse cluster-aware procid_is_me instead of comparing pid's
Volker Lendecke [Fri, 3 Apr 2009 08:43:13 +0000 (10:43 +0200)]
Use cluster-aware procid_is_me instead of comparing pid's

15 years agoUse procid_str in debug messages for better cluster-debuggability
Volker Lendecke [Fri, 3 Apr 2009 08:42:43 +0000 (10:42 +0200)]
Use procid_str in debug messages for better cluster-debuggability

15 years agos3-nsswitch: Fix Bug #6238. Make sure logoff is bla bla.
Günther Deschner [Fri, 3 Apr 2009 07:57:53 +0000 (09:57 +0200)]
s3-nsswitch: Fix Bug #6238. Make sure logoff is bla bla.

Fix inspired by patch from Rashid N. Achilov <citycat4@ngs.ru>.

Guenther

15 years agos4:schema Don't free mem_ctx before it is initilised
Andrew Bartlett [Thu, 2 Apr 2009 23:33:12 +0000 (10:33 +1100)]
s4:schema Don't free mem_ctx before it is initilised

15 years agos3-build: fix the build after tsocket changes.
Günther Deschner [Thu, 2 Apr 2009 22:30:13 +0000 (00:30 +0200)]
s3-build: fix the build after tsocket changes.

Metze, please check.

Guenther

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schema
Andrew Bartlett [Thu, 2 Apr 2009 21:28:22 +0000 (08:28 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into wspp-schema

15 years agos4:schema Update Windows 2008 schema from Microsoft to latest version
Andrew Bartlett [Thu, 2 Apr 2009 21:18:14 +0000 (08:18 +1100)]
s4:schema Update Windows 2008 schema from Microsoft to latest version

15 years agoRemove minschema generated schema - we now generate from setup/ad-schema/
Andrew Bartlett [Thu, 2 Apr 2009 21:15:25 +0000 (08:15 +1100)]
Remove minschema generated schema - we now generate from setup/ad-schema/

15 years agoAdd parentGUID as an allowed attribute in samba4Top
Andrew Bartlett [Thu, 2 Apr 2009 21:14:42 +0000 (08:14 +1100)]
Add parentGUID as an allowed attribute in samba4Top

This is required to get provision against OpenLDAP working again

15 years agos3-lsa: use LSA_ROLE definitions in _lsa_QueryInfoPolicy().
Günther Deschner [Thu, 2 Apr 2009 16:48:15 +0000 (18:48 +0200)]
s3-lsa: use LSA_ROLE definitions in _lsa_QueryInfoPolicy().

Guenther

15 years agos3-lsa: don't SAFE_FREE talloced structs.
Günther Deschner [Thu, 2 Apr 2009 16:47:51 +0000 (18:47 +0200)]
s3-lsa: don't SAFE_FREE talloced structs.

Guenther

15 years agotsocket: remove DGRAM support from tsocket_context
Stefan Metzmacher [Thu, 2 Apr 2009 19:06:27 +0000 (21:06 +0200)]
tsocket: remove DGRAM support from tsocket_context

metze

15 years agolibcli/cldap: convert to tsocket_* function to tdgram_*
Stefan Metzmacher [Sat, 28 Mar 2009 22:31:01 +0000 (23:31 +0100)]
libcli/cldap: convert to tsocket_* function to tdgram_*

metze

15 years agotsocket: optimize tdgram_bsd a lot
Stefan Metzmacher [Thu, 2 Apr 2009 08:36:03 +0000 (10:36 +0200)]
tsocket: optimize tdgram_bsd a lot

The desire is to do as less syscalls during the
tdgram_sendto_send/recv() and tdgram_recvfrom_send/recv()
operations.

1. we first try the sendto()/recvfrom() syscall and
   only use a fd event if we got EAGAIN.

2. we cache the fd event and only change it's flags
   if really needed.

For the highload case we do almost no epoll_ctl() and epoll_wait()/select()
syscalls anymore. This speeds up the LDAP-BENCH-CLDAP test
by more than 20%. (With a modified version of this test
which let the server skip any ldb calls and just return success
I'm getting about 8000 requests per second, while I'm getting
just about 6000 requests per second without optimization)

metze

15 years agotsocket: add tdgram_sendto_queue_send/recv()
Stefan Metzmacher [Sat, 28 Mar 2009 22:25:28 +0000 (23:25 +0100)]
tsocket: add tdgram_sendto_queue_send/recv()

metze

15 years agotsocket: split out a smaller tdgram_context abstraction
Stefan Metzmacher [Thu, 26 Mar 2009 13:27:45 +0000 (14:27 +0100)]
tsocket: split out a smaller tdgram_context abstraction

The idea is to have a tdgram and a tstream abstraction
which only provide tevent_req based io functions.

metze

15 years agos3-spoolss: implement _spoolss_GetPrinterDriver2 level 101 (Bug #5140).
Günther Deschner [Thu, 19 Mar 2009 11:30:26 +0000 (12:30 +0100)]
s3-spoolss: implement _spoolss_GetPrinterDriver2 level 101 (Bug #5140).

Guenther