jra/samba/.git
10 years agoMerge branch 'master' of git://git.samba.org/samba into convenience
Jelmer Vernooij [Sun, 1 Mar 2009 21:25:57 +0000 (22:25 +0100)]
Merge branch 'master' of git://git.samba.org/samba into convenience

10 years agoUse common header file for character set handling in Samba 3 and Samba 4.
Jelmer Vernooij [Sun, 1 Mar 2009 21:24:34 +0000 (22:24 +0100)]
Use common header file for character set handling in Samba 3 and Samba 4.

10 years agoAdd header files for secace and secacl.
Jelmer Vernooij [Sun, 1 Mar 2009 19:06:55 +0000 (20:06 +0100)]
Add header files for secace and secacl.

10 years agos4: Use same function signature for convert_* as s3.
Jelmer Vernooij [Sun, 1 Mar 2009 18:55:46 +0000 (19:55 +0100)]
s4: Use same function signature for convert_* as s3.

10 years agoMove secacl to top-level.
Jelmer Vernooij [Sun, 1 Mar 2009 17:15:36 +0000 (18:15 +0100)]
Move secacl to top-level.

10 years agodom_sid.h: Include dependency security.h that provides the dom_sid struct.
Jelmer Vernooij [Sun, 1 Mar 2009 17:15:15 +0000 (18:15 +0100)]
dom_sid.h: Include dependency security.h that provides the dom_sid struct.

10 years agoAlso re-add removed codepoint_t; I'm clearly not having my day today.
Jelmer Vernooij [Sun, 1 Mar 2009 17:05:22 +0000 (18:05 +0100)]
Also re-add removed codepoint_t; I'm clearly not having my day today.

10 years agoKeep using Samba3's charset.h for now.
Jelmer Vernooij [Sun, 1 Mar 2009 17:02:24 +0000 (18:02 +0100)]
Keep using Samba3's charset.h for now.

10 years agoMove secace.c to top-level.
Jelmer Vernooij [Sun, 1 Mar 2009 16:59:30 +0000 (17:59 +0100)]
Move secace.c to top-level.

10 years agoMerge branch 'master' of git://git.samba.org/samba into convenience
Jelmer Vernooij [Sun, 1 Mar 2009 16:29:04 +0000 (17:29 +0100)]
Merge branch 'master' of git://git.samba.org/samba into convenience

10 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next
Jelmer Vernooij [Sun, 1 Mar 2009 16:13:10 +0000 (17:13 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next

10 years agoRerun pidl.
Jelmer Vernooij [Sun, 1 Mar 2009 16:09:45 +0000 (17:09 +0100)]
Rerun pidl.

10 years agoDon't generate array iterators when the length of the array is always 0.
Jelmer Vernooij [Sun, 1 Mar 2009 16:09:07 +0000 (17:09 +0100)]
Don't generate array iterators when the length of the array is always 0.
(bug #6140)

10 years agoMerge branch 'master' of git://git.samba.org/samba into convenience
Jelmer Vernooij [Sun, 1 Mar 2009 15:41:57 +0000 (16:41 +0100)]
Merge branch 'master' of git://git.samba.org/samba into convenience

10 years agoMerge branch 'master' of git://git.samba.org/samba into teventfix
Jelmer Vernooij [Sun, 1 Mar 2009 15:39:35 +0000 (16:39 +0100)]
Merge branch 'master' of git://git.samba.org/samba into teventfix

Conflicts:
lib/tevent/pytevent.c

10 years agoAvoid using tevent_util.h, which won't be available if we use the system
Jelmer Vernooij [Sun, 1 Mar 2009 15:38:07 +0000 (16:38 +0100)]
Avoid using tevent_util.h, which won't be available if we use the system
tevent.

10 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next
Jelmer Vernooij [Sun, 1 Mar 2009 15:23:53 +0000 (16:23 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next

10 years agoMove next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.
Jelmer Vernooij [Sun, 1 Mar 2009 15:19:38 +0000 (16:19 +0100)]
Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4.

10 years agoMove next_token_talloc() to top-level.
Jelmer Vernooij [Sun, 1 Mar 2009 15:16:16 +0000 (16:16 +0100)]
Move next_token_talloc() to top-level.

10 years agoSync smb_iconv_t type, convert_string return type with Samba 3 equivalents.
Jelmer Vernooij [Sun, 1 Mar 2009 11:59:58 +0000 (12:59 +0100)]
Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.

10 years agoOnly copy sharename up from rap_to_pjobid
Volker Lendecke [Sun, 1 Mar 2009 10:39:44 +0000 (11:39 +0100)]
Only copy sharename up from rap_to_pjobid

Why?? :-)

Another one of the little micro-optimizations that I just came across: If you
allocate a variable in a sub-block like the "fstring sharename" in
write_file(), gcc even with -O3 will allocate this variable unconditionally on
the stack at the beginning of the routine. So with eliminating this fstring we
cut 256 bytes of stack in a very hot code path writing to a file. It might make
us a bit more cache-friendly.

This would probably not be worth a second look if it involved larger code
changes, but this one was just too simple to let it pass :-)

10 years agoAdd allow_badcharcnv argument to all conversion function, for
Jelmer Vernooij [Sun, 1 Mar 2009 05:33:40 +0000 (06:33 +0100)]
Add allow_badcharcnv argument to all conversion function, for
consistency with Samba 3.

10 years agoMerge branch 'master' of git://git.samba.org/samba into HEAD
Jelmer Vernooij [Sun, 1 Mar 2009 04:46:15 +0000 (05:46 +0100)]
Merge branch 'master' of git://git.samba.org/samba into HEAD

10 years agoEliminate two duplicate SEC_ACE_TYPE constants already provided by
Jelmer Vernooij [Sun, 1 Mar 2009 03:59:07 +0000 (04:59 +0100)]
Eliminate two duplicate SEC_ACE_TYPE constants already provided by
security.idl.

10 years agoFix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
Jeremy Allison [Sat, 28 Feb 2009 21:14:23 +0000 (13:14 -0800)]
Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
delete file (directory fix).
Jeremy.

10 years agoFix async reading winbindd_response
Volker Lendecke [Sat, 28 Feb 2009 11:20:56 +0000 (12:20 +0100)]
Fix async reading winbindd_response

10 years agoSimplify async_connect_send slightly
Volker Lendecke [Sat, 28 Feb 2009 11:19:24 +0000 (12:19 +0100)]
Simplify async_connect_send slightly

10 years agoAnd the prize for the most pain caused in the build farm for a simple
Jeremy Allison [Sat, 28 Feb 2009 04:57:49 +0000 (20:57 -0800)]
And the prize for the most pain caused in the build farm for a simple
typo goes to.....
Tim Prouty !!!!
Sorry Tim, nice test but you made a typo in passing in
the size of an array so we were reading uninitialized
memory :-).
That took far longer than it should have to track down...
(%$&#ing build system....).
The build farm should now slowly go back to normal.
Jeremy.

10 years agoInitialize the id_map status in idmap_ldap to avoid surprise
Bo Yang [Thu, 26 Feb 2009 09:44:33 +0000 (17:44 +0800)]
Initialize the id_map status in idmap_ldap to avoid surprise

10 years agos3: re-run make samba3-idl.
Günther Deschner [Fri, 27 Feb 2009 12:33:51 +0000 (13:33 +0100)]
s3: re-run make samba3-idl.

Guenther

10 years agospoolss: fill in spoolss_SetJobInfo1,2,3,4.
Günther Deschner [Fri, 27 Feb 2009 12:31:02 +0000 (13:31 +0100)]
spoolss: fill in spoolss_SetJobInfo1,2,3,4.

Guenther

10 years agospoolss: add spoolss_PortInfo3 and spoolss_PortInfoFF.
Günther Deschner [Fri, 27 Feb 2009 10:27:44 +0000 (11:27 +0100)]
spoolss: add spoolss_PortInfo3 and spoolss_PortInfoFF.

Guenther

10 years agos3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.
Günther Deschner [Thu, 26 Feb 2009 22:40:58 +0000 (23:40 +0100)]
s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.

Guenther

10 years agoUse talloc_tos() in regkey_access_check()
Volker Lendecke [Fri, 27 Feb 2009 10:18:35 +0000 (11:18 +0100)]
Use talloc_tos() in regkey_access_check()

10 years agos3: fix guest auth when winbindd is running
Steven Danneman [Fri, 27 Feb 2009 01:47:32 +0000 (17:47 -0800)]
s3: fix guest auth when winbindd is running

This fix is very subtle.  If a server is configured with "security = share"
and "guest ok = yes" and winbindd is running authorization will fail during
tree connect.

This is due to our inability to map the guest sid S-1-5-21-X-501 to a uid
through sid_to_uid().  Winbindd is unaware of the hard coded mapping
between this sid and whatever uid the name in lp_guestaccount() is assigned.
So sid_to_uid() fails and we exit create_token_from_username() without
ever calling pdb_getsampwsid() which IS aware of the hard coded mapping.

This patch just reorganizes the code, moving sid_to_uid() down to the
block of code in which it is needed, avoiding this early failure.

10 years agos3-rpcclient: add getjob spoolss command.
Günther Deschner [Thu, 26 Feb 2009 14:35:12 +0000 (15:35 +0100)]
s3-rpcclient: add getjob spoolss command.

Guenther

10 years agos3-rpcclient: use is_valid_policy_hnd before closing handles.
Günther Deschner [Thu, 26 Feb 2009 14:33:16 +0000 (15:33 +0100)]
s3-rpcclient: use is_valid_policy_hnd before closing handles.

Guenther

10 years agos3-spoolss: remove old rpccli_spoolss_getjob.
Günther Deschner [Thu, 26 Feb 2009 14:34:46 +0000 (15:34 +0100)]
s3-spoolss: remove old rpccli_spoolss_getjob.

Guenther

10 years agos3-spoolss: add rpccli_spoolss_getjob convenience wrapper.
Günther Deschner [Thu, 26 Feb 2009 14:33:57 +0000 (15:33 +0100)]
s3-spoolss: add rpccli_spoolss_getjob convenience wrapper.

Guenther

10 years agos3: re-run make samba3-idl.
Günther Deschner [Thu, 26 Feb 2009 21:01:55 +0000 (22:01 +0100)]
s3: re-run make samba3-idl.

Guenther

10 years agospoolss: add 2 new SPOOLSS_JOB_CONTROL values.
Günther Deschner [Thu, 26 Feb 2009 14:52:51 +0000 (15:52 +0100)]
spoolss: add 2 new SPOOLSS_JOB_CONTROL values.

Guenther

10 years agospoolss: add spoolss_JobInfo2, JobInfo3 and JobInfo4 (new in vista).
Günther Deschner [Thu, 26 Feb 2009 14:29:23 +0000 (15:29 +0100)]
spoolss: add spoolss_JobInfo2, JobInfo3 and JobInfo4 (new in vista).

Guenther

10 years agodon't hardcode python path
Björn Jacke [Thu, 26 Feb 2009 15:32:57 +0000 (16:32 +0100)]
don't hardcode python path

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agoMake us pass the RAW-RENAME torture test I just added.
Jeremy Allison [Thu, 26 Feb 2009 19:42:23 +0000 (11:42 -0800)]
Make us pass the RAW-RENAME torture test I just added.

Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED.

Jeremy.

10 years agoAdd another torture test inspired by George @ Apple.
Jeremy Allison [Thu, 26 Feb 2009 18:13:57 +0000 (10:13 -0800)]
Add another torture test inspired by George @ Apple.
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED. This
is connected to the test case where the close was
failing due to a delayed write on a file not being
able to succeed when Samba allowed the containing
directory to be renamed.

I will fix this in the server shortly (this should be done
across connections also but with will be very hard
in Samba - would need a full scan of the open file
db on every directory rename) - so I will fix for
the local case first (scanning local file opens
inside an smbd is cheap).

Jeremy.

10 years agolib/torture: fix depency to map_nt_error_from_unix()
Stefan Metzmacher [Thu, 26 Feb 2009 14:36:16 +0000 (15:36 +0100)]
lib/torture: fix depency to map_nt_error_from_unix()

This should fix the build on Mac OS 10

metze

10 years agos3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQ
Michael Adam [Thu, 26 Feb 2009 13:34:38 +0000 (14:34 +0100)]
s3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQ

Günther, please check...

Michael

10 years agotevent: add tevent_queue infrastructure
Stefan Metzmacher [Tue, 17 Feb 2009 10:42:01 +0000 (11:42 +0100)]
tevent: add tevent_queue infrastructure

metze

10 years agos3:registry: tighten the subkey loop in reg_deletekey_recursive()
Michael Adam [Thu, 26 Feb 2009 01:59:07 +0000 (02:59 +0100)]
s3:registry: tighten the subkey loop in reg_deletekey_recursive()

and loop from the end to the beginning so that we don't need
to rehash the subkeys...

This gets "net conf drop" with 2000 shares down to 14 seconds
on my box.

Michael

10 years agos3:registry: use delete_reg_subkey() in reg_deletekey()
Michael Adam [Thu, 26 Feb 2009 01:57:59 +0000 (02:57 +0100)]
s3:registry: use delete_reg_subkey() in reg_deletekey()

This further speeds up net conf drop.

Michael

10 years agos3:registry: implement delete_subkey in the smbconf backend
Michael Adam [Thu, 26 Feb 2009 01:56:50 +0000 (02:56 +0100)]
s3:registry: implement delete_subkey in the smbconf backend

delegating the call to the db backend

Michael

10 years agos3:registry: implement delete_subkey in the db backend
Michael Adam [Thu, 26 Feb 2009 01:56:00 +0000 (02:56 +0100)]
s3:registry: implement delete_subkey in the db backend

Michael

10 years agos3:registry: add a delete_subkey method to the backend ops.
Michael Adam [Thu, 26 Feb 2009 01:54:50 +0000 (02:54 +0100)]
s3:registry: add a delete_subkey method to the backend ops.

This is to provide a more atomic means of deleting a subkey of a key.

Michael

10 years agos3:registry: refactor deletion of various subkey lists out of regdb_store_keys()
Michael Adam [Thu, 26 Feb 2009 00:43:58 +0000 (01:43 +0100)]
s3:registry: refactor deletion of various subkey lists out of regdb_store_keys()

Micheal

10 years agos3:registry: streamline and cleanup regdb_set_secdesc() somewhat.
Michael Adam [Thu, 26 Feb 2009 00:22:03 +0000 (01:22 +0100)]
s3:registry: streamline and cleanup regdb_set_secdesc() somewhat.

Michael

10 years agos3:registry: refactor deletion of value/secdesc/subkey list tdb records out
Michael Adam [Thu, 26 Feb 2009 00:16:07 +0000 (01:16 +0100)]
s3:registry: refactor deletion of value/secdesc/subkey list tdb records out

of regdb_store_values().

Michael

10 years agos3:registry: streamline reg_deletekey() somewhat.
Michael Adam [Wed, 25 Feb 2009 22:13:07 +0000 (23:13 +0100)]
s3:registry: streamline reg_deletekey() somewhat.

use W_ERROR_... macros and separate assignments from checks

Michael

10 years agos3:registry: use create_reg_subkey() in reg_createkey().
Michael Adam [Wed, 25 Feb 2009 21:06:47 +0000 (22:06 +0100)]
s3:registry: use create_reg_subkey() in reg_createkey().

Instead of calling store_reg_keys()

On my box, importing 2000 shares into an empty smbconf key
now takes some 32 seconds.

Michael

10 years agos3:registry: implement create_subkey for the smbconf backend
Michael Adam [Wed, 25 Feb 2009 21:04:58 +0000 (22:04 +0100)]
s3:registry: implement create_subkey for the smbconf backend

by delegating to the db backend

Michael

10 years agos3:registry: implement create_subkey for the db backend.
Michael Adam [Wed, 25 Feb 2009 21:04:07 +0000 (22:04 +0100)]
s3:registry: implement create_subkey for the db backend.

Michael

10 years agos3:registry: add a create_subkey method to the backend ops.
Michael Adam [Wed, 25 Feb 2009 20:59:54 +0000 (21:59 +0100)]
s3:registry: add a create_subkey method to the backend ops.

This is to provide a more atomic means of adding a subkey of a key.

Michael

10 years agolibcli/util/werror.h: add macro W_ERROR_NOT_OK_GOTO(x, y)
Michael Adam [Wed, 25 Feb 2009 15:55:28 +0000 (16:55 +0100)]
libcli/util/werror.h: add macro W_ERROR_NOT_OK_GOTO(x, y)

a goto destination can be specified as a second parameter.

Michael

10 years agos3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to libcli/util/werror.h
Michael Adam [Wed, 25 Feb 2009 15:53:05 +0000 (16:53 +0100)]
s3: move definition of W_ERROR_NOT_OK_GOTO_DONE down to libcli/util/werror.h

Michael

10 years agos3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.
Michael Adam [Wed, 25 Feb 2009 13:49:30 +0000 (14:49 +0100)]
s3:net rpc registry: use regsubkey_ctr_init() instead of using talloc directly.

Michael

10 years agos3:registry: hash the list of subkeys in the regsubkey_ctr
Michael Adam [Wed, 25 Feb 2009 08:53:16 +0000 (09:53 +0100)]
s3:registry: hash the list of subkeys in the regsubkey_ctr

This removes many loops over all the arrays
(from regsubkey_ctr_key_exists) and thus
reduces "net conf drop" from 1m55 to 48seconds
and "net conf import" from 1m55 to 58 seconds
for 2000 shares on my box.

Michael

10 years agos3:registry: remove definition of regsubkey_ctr from the surface.
Michael Adam [Tue, 24 Feb 2009 23:33:24 +0000 (00:33 +0100)]
s3:registry: remove definition of regsubkey_ctr from the surface.

All access is now through accessor functions in reg_objects.c
This allows for performance tuning under the hood in the next step.

Michael

10 years agos3:profiles: use regsubkey_ctr_init() instead of using talloc directly.
Michael Adam [Tue, 24 Feb 2009 23:32:21 +0000 (00:32 +0100)]
s3:profiles: use regsubkey_ctr_init() instead of using talloc directly.

Michael

10 years agos3:registry: use regsubkey_ctr_init() in reg_eventlog.c
Michael Adam [Tue, 24 Feb 2009 22:28:48 +0000 (23:28 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_eventlog.c

Michael

10 years agos3:services_db: use regsubkey_ctr_init() instead of using talloc directly
Michael Adam [Tue, 24 Feb 2009 22:23:04 +0000 (23:23 +0100)]
s3:services_db: use regsubkey_ctr_init() instead of using talloc directly

Michael

10 years agos3:registry: use regsubkey_ctr_get_seqnum() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:19:35 +0000 (23:19 +0100)]
s3:registry: use regsubkey_ctr_get_seqnum() in reg_backend_db.c

Michael

10 years agos3:registry: use regsubkey_ctr_set_seqnum() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:19:08 +0000 (23:19 +0100)]
s3:registry: use regsubkey_ctr_set_seqnum() in reg_backend_db.c

Michael

10 years agos3:registry: use regsubkey_ctr_init() in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 22:18:20 +0000 (23:18 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_backend_db.c

instead of using talloc directly.

Michael

10 years agos3:registry: use regsubkey_ctr_init() in reg_api.c
Michael Adam [Tue, 24 Feb 2009 22:17:05 +0000 (23:17 +0100)]
s3:registry: use regsubkey_ctr_init() in reg_api.c

instead of using talloc on struct regsubkey_ctr.

Michael

10 years agos3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
Michael Adam [Tue, 24 Feb 2009 22:15:55 +0000 (23:15 +0100)]
s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation

Michael

10 years agos3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
Michael Adam [Tue, 24 Feb 2009 22:10:35 +0000 (23:10 +0100)]
s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.

Michael

10 years agos3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr
Michael Adam [Tue, 24 Feb 2009 21:43:47 +0000 (22:43 +0100)]
s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr

Michael

10 years agos3:registry: fix a comment
Michael Adam [Tue, 24 Feb 2009 21:41:40 +0000 (22:41 +0100)]
s3:registry: fix a comment

Michael

10 years agos3:registry: don't directly access key->subkeys->subkeys[] in reg_backend_db.c
Michael Adam [Tue, 24 Feb 2009 21:16:40 +0000 (22:16 +0100)]
s3:registry: don't directly access key->subkeys->subkeys[] in  reg_backend_db.c

Use the reg_objects accessor regsubkey_ctr_specific_key() instead.

Michael

10 years agos3:registry: don't directly access key->subkeys->subkeys[] in reg_api.c
Michael Adam [Tue, 24 Feb 2009 20:12:26 +0000 (21:12 +0100)]
s3:registry: don't directly access key->subkeys->subkeys[] in  reg_api.c

Use the reg_objects accessor regsubkey_ctr_specific_key() instead.

Michael

10 years agos3:registry: don't directly access key->subkeys->num_subkeys in reg_backend_db.
Michael Adam [Tue, 24 Feb 2009 16:42:50 +0000 (17:42 +0100)]
s3:registry: don't directly access key->subkeys->num_subkeys in reg_backend_db.

Use the reg_objects api instead.

Michael

10 years agos3:registry: don't directly access key->subkeys->num_subkeys in reg_api.c
Michael Adam [Tue, 24 Feb 2009 16:30:23 +0000 (17:30 +0100)]
s3:registry: don't directly access key->subkeys->num_subkeys in reg_api.c

Use the reg_objects api instead.

Michael

10 years agos3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
Michael Adam [Tue, 24 Feb 2009 14:19:18 +0000 (15:19 +0100)]
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

10 years agoRevert "Fix a O(n^2) algorithm in regdb_fetch_keys()"
Michael Adam [Tue, 24 Feb 2009 16:51:09 +0000 (17:51 +0100)]
Revert "Fix a O(n^2) algorithm in regdb_fetch_keys()"

This reverts commit a13f065bad0f4d21a67e68b743f17f45bf0a4691.

This fix is reverted, because the speedup is going to move
further down into reg_objects.c. The unsorted list of subkey names
is going to be indexed: This O(n^2) search bites us in more places.
This re-establishes the abstraction of reg_objects.c.

Michael

10 years agoRemove a temporary debug message -- sorry
Volker Lendecke [Thu, 26 Feb 2009 12:24:59 +0000 (13:24 +0100)]
Remove a temporary debug message -- sorry

10 years agos3-spoolss: fix search_notify(). sorry...
Günther Deschner [Thu, 26 Feb 2009 12:19:24 +0000 (13:19 +0100)]
s3-spoolss: fix search_notify(). sorry...

Guenther

10 years agos3: re-run make samba3-idl.
Günther Deschner [Thu, 26 Feb 2009 12:15:47 +0000 (13:15 +0100)]
s3: re-run make samba3-idl.

Guenther

10 years agos3-spoolss: job status defines moved to IDL.
Günther Deschner [Thu, 26 Feb 2009 00:10:58 +0000 (01:10 +0100)]
s3-spoolss: job status defines moved to IDL.

Guenther

10 years agospoolss: add spoolss_JobStatus.
Günther Deschner [Thu, 26 Feb 2009 00:10:37 +0000 (01:10 +0100)]
spoolss: add spoolss_JobStatus.

Guenther

10 years agos3-spoolss: remove some unused defines and structs.
Günther Deschner [Wed, 25 Feb 2009 23:49:02 +0000 (00:49 +0100)]
s3-spoolss: remove some unused defines and structs.

Guenther

10 years agos4:heimdal_build: correrctly switch closefrom() and get/setprogname() replacements...
Stefan Metzmacher [Thu, 26 Feb 2009 12:12:54 +0000 (13:12 +0100)]
s4:heimdal_build: correrctly switch closefrom() and get/setprogname() replacements on and off

metze

10 years agoConvert open_socket_out to tevent_req
Volker Lendecke [Thu, 26 Feb 2009 11:34:39 +0000 (12:34 +0100)]
Convert open_socket_out to tevent_req

10 years agoAdd tevent_req helpers to includes.h
Volker Lendecke [Thu, 26 Feb 2009 11:34:14 +0000 (12:34 +0100)]
Add tevent_req helpers to includes.h

10 years agoAdd tevent_ntstatus
Volker Lendecke [Thu, 26 Feb 2009 09:48:41 +0000 (10:48 +0100)]
Add tevent_ntstatus

10 years agos3:net: wrap net conf import into one big transaction
Michael Adam [Tue, 24 Feb 2009 09:54:13 +0000 (10:54 +0100)]
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

10 years agos3:libsmbconf: add transactions to the libsmbconf api
Michael Adam [Tue, 24 Feb 2009 09:52:30 +0000 (10:52 +0100)]
s3:libsmbconf: add transactions to the libsmbconf api

This is useful for wrapping higher level aggregate operations
in transactions. The text backend implementations just return
WERR_OK, the registry backend implementatoins use the
regdb_transaction_start|commit|cancel routines just added.

Michael

10 years agos3:registry: wrap deletekey_recursive in one big transaction.
Michael Adam [Tue, 24 Feb 2009 14:40:05 +0000 (15:40 +0100)]
s3:registry: wrap deletekey_recursive in one big transaction.

This speeds up "net conf drop" with 2000 shares on my box from
4m40s to 1m50s, leaving virtually only cpu load.

Michael

10 years agos3:registry: provide transaction_start|commit|cancel fns for the registry tdb
Michael Adam [Tue, 24 Feb 2009 09:44:48 +0000 (10:44 +0100)]
s3:registry: provide transaction_start|commit|cancel fns for the registry tdb

Michael

10 years agoWrap creating the sorted subkey cache in a transaction
Volker Lendecke [Sun, 22 Feb 2009 09:11:29 +0000 (10:11 +0100)]
Wrap creating the sorted subkey cache in a transaction

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agoAdd a comment describing the sorted subkeys
Volker Lendecke [Sun, 22 Feb 2009 00:11:51 +0000 (01:11 +0100)]
Add a comment describing the sorted subkeys

Signed-off-by: Michael Adam <obnox@samba.org>
10 years agoAdd sorted subkey cache
Volker Lendecke [Fri, 20 Feb 2009 05:01:16 +0000 (06:01 +0100)]
Add sorted subkey cache

On my box this gets net conf list for 1000 records down to .1 seconds

Signed-off-by: Michael Adam <obnox@samba.org>