Volker Lendecke [Wed, 6 Dec 2006 11:01:27 +0000 (11:01 +0000)]
r20049: Reformatting
Volker Lendecke [Wed, 6 Dec 2006 10:21:20 +0000 (10:21 +0000)]
r20048: Fix vfs_full_audit after Jims kernel_flock addition
Volker Lendecke [Tue, 5 Dec 2006 16:20:39 +0000 (16:20 +0000)]
r20046: Add ldb_search_exp_fmt and port comment to 4
Volker Lendecke [Tue, 5 Dec 2006 07:36:14 +0000 (07:36 +0000)]
r20037: Reduce code size slightly by shuffling stuff around
Volker Lendecke [Tue, 5 Dec 2006 06:25:12 +0000 (06:25 +0000)]
r20036: Merge ldb_search_exp_fmt -- Thanks simo
Jeremy Allison [Tue, 5 Dec 2006 06:15:23 +0000 (06:15 +0000)]
r20035: Fix obvious horrible bug in falling back to MS-RPC
methods.
Jeremy.
Volker Lendecke [Sun, 3 Dec 2006 17:34:11 +0000 (17:34 +0000)]
r20020: Arglll... eventlogadm links against reg_db but not the rest of the registry
stuff. Revert the last change.
This needs better fixing.
Volker
Volker Lendecke [Sun, 3 Dec 2006 17:16:45 +0000 (17:16 +0000)]
r20019: Replace one set of tricky code by calls to another set of tricky code:
Initializing the reg_db now uses reg_createkey and reg_setvalue.
Volker
Volker Lendecke [Sun, 3 Dec 2006 16:51:31 +0000 (16:51 +0000)]
r20018: Fix a memleak in reg_createkey
Volker Lendecke [Sun, 3 Dec 2006 16:19:29 +0000 (16:19 +0000)]
r20017: Make srvsvc_NetShareAdd & friends take care of registry shares
Volker Lendecke [Sun, 3 Dec 2006 16:19:15 +0000 (16:19 +0000)]
r20016: Add two utility functions for easy opening/creating registry keys
Volker Lendecke [Sun, 3 Dec 2006 16:18:31 +0000 (16:18 +0000)]
r20015: We have to zero out handle on key_close, otherwise the NT4 regedit will re-use the handle
Volker Lendecke [Sun, 3 Dec 2006 15:34:52 +0000 (15:34 +0000)]
r20014: Ouch.... "res" is not a flag here, it is the service number...
Volker Lendecke [Sun, 3 Dec 2006 10:09:37 +0000 (10:09 +0000)]
r20013: Fix segfaults: parm_error is a unique in/out ptr
Volker Lendecke [Sat, 2 Dec 2006 23:01:34 +0000 (23:01 +0000)]
r20012: Reformatting
Volker Lendecke [Sat, 2 Dec 2006 11:18:19 +0000 (11:18 +0000)]
r20007: Fix a const warning just introduced
Volker Lendecke [Sat, 2 Dec 2006 10:53:00 +0000 (10:53 +0000)]
r20006: Convert the registry shares to use the new API
Volker Lendecke [Sat, 2 Dec 2006 10:52:37 +0000 (10:52 +0000)]
r20005: reg_open_path should become the replacement for regkey_open_internal.
Volker Lendecke [Sat, 2 Dec 2006 10:51:54 +0000 (10:51 +0000)]
r20004: Remove a const, "name" is allocated anyway
Volker Lendecke [Sat, 2 Dec 2006 10:51:21 +0000 (10:51 +0000)]
r20003: Fix error message
Volker Lendecke [Sat, 2 Dec 2006 09:17:18 +0000 (09:17 +0000)]
r20001: Fix bug 4273, thanks to Pascal Terjan
Jeremy Allison [Fri, 1 Dec 2006 23:46:07 +0000 (23:46 +0000)]
r19993: Fix the problem with Linux clients requesting O_WRONLY
on write-only files. Jim please check. Should not affect
Windows clients - I ensured all the relevent Samba4
torture tests still pass.
Jeremy.
Paul Green [Fri, 1 Dec 2006 20:45:43 +0000 (20:45 +0000)]
r19992: Add support to the tdb Makefile.in for executable extensions and for
separately specifying CPPFLAGS and LDFLAGS.
Volker Lendecke [Fri, 1 Dec 2006 20:01:09 +0000 (20:01 +0000)]
r19991: Sorry for this 2000-liner...
The main thing here is a rewrite of srv_winreg_nt.c. The core functionality
has moved to registry/reg_api.c which is then usable by the rest of Samba as
well.
On that way it fixes creating keys with more than one element in the
path. This did not work before.
Two things that sneaked in (sorry :-) is the change of some routines from
NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal.
Volker
Volker Lendecke [Fri, 1 Dec 2006 19:55:29 +0000 (19:55 +0000)]
r19990: Fix comment
Simo Sorce [Fri, 1 Dec 2006 16:37:25 +0000 (16:37 +0000)]
r19986: ooops
Simo Sorce [Fri, 1 Dec 2006 16:13:06 +0000 (16:13 +0000)]
r19984: Must have been drunk yesterday.
Freeing memctx is all we need, fix double free stupidity
Stefan Metzmacher [Fri, 1 Dec 2006 15:12:22 +0000 (15:12 +0000)]
r19982: From Michael Adam (ma@sernet.de) (thanks!:-)
Metze: as noted by "shattered" and discussed on the irc,
here is a patch to lib/sysquotas_linux.c replacing some
"get"s by "set"s. The other lib/sysquotas*.c files look
ok to me. But in the linux variant, the problem is not
in the actual call of quotactl but in the preparation of
the respective "D" structs. This makes the difference
between the get and set calls for SMB_USER_FS_QUOTA_TYPE
and SMB_GROUP_FS_QUOTA_TYPE.
metze
Simo Sorce [Fri, 1 Dec 2006 15:06:34 +0000 (15:06 +0000)]
r19980: Implement pam account stack checks when obey pam restrictions is true.
It was missing for security=server/domain/ads
Simo.
Simo Sorce [Fri, 1 Dec 2006 15:04:53 +0000 (15:04 +0000)]
r19979: Fix memleak on pw and change talloc_destroy to TALLOC_FREE for mem_ctx
Volker Lendecke [Fri, 1 Dec 2006 14:54:31 +0000 (14:54 +0000)]
r19978: More "net sam policy" improvements. Thanks to Karolin Seeger <ks@sernet.de>
Volker
Gerald Carter [Fri, 1 Dec 2006 14:18:35 +0000 (14:18 +0000)]
r19977: * Fix a crash in the secure DNS update code. Don't free
the host_principal memory while it is still being referenced
by the gss code.
Jeremy Allison [Fri, 1 Dec 2006 01:58:43 +0000 (01:58 +0000)]
r19975: Deal with 2 keytypes I messed previously (DR/DE).
Fix code that mistakenly assumed tdb_traverse
returned 0 or -1, it actually returns -1 or the
number of entries traversed. Add a static as another
way to return the bad cache value.
Jeremy.
Jeremy Allison [Fri, 1 Dec 2006 00:06:35 +0000 (00:06 +0000)]
r19974: Add freelist check for cache. Fix testing of entry
names (all except SEQNUM are *not* null terminated
strings).
Jeremy.
Volker Lendecke [Thu, 30 Nov 2006 07:38:40 +0000 (07:38 +0000)]
r19963: Add 'registry shares = yes' and registry key security descriptors.
James Peach [Thu, 30 Nov 2006 06:26:11 +0000 (06:26 +0000)]
r19962: Revert bogus change in r19961. In future I will check configure.in
as well as Makefile.in :(
James Peach [Thu, 30 Nov 2006 04:55:42 +0000 (04:55 +0000)]
r19961: Remove VARDIR. Nothing is ever installed into this, so there's no
need to create it.
Jeremy Allison [Thu, 30 Nov 2006 03:05:55 +0000 (03:05 +0000)]
r19959: Allow tdb to be built standalone in Samba3.
Add code to check for loops in the free list.
Should help us validate tdb's against corruption.
Jeremy.
Jeremy Allison [Thu, 30 Nov 2006 00:09:34 +0000 (00:09 +0000)]
r19958: Add check for WINBIND_OFFLINE key.
Jeremy.
Jeremy Allison [Wed, 29 Nov 2006 23:20:22 +0000 (23:20 +0000)]
r19957: Initial framework to make winbindd robust
against tdb corruption. Needs fleshing out
(and I forgot one record type) and needs helpful
suggestion from Volker to validate freelist,
but should give an idea of how this will look.
Jeremy.
Volker Lendecke [Wed, 29 Nov 2006 15:46:57 +0000 (15:46 +0000)]
r19950: talloc_destroy is replaced these days
Volker Lendecke [Wed, 29 Nov 2006 12:39:33 +0000 (12:39 +0000)]
r19948: Fix a memleak
Volker Lendecke [Wed, 29 Nov 2006 10:51:00 +0000 (10:51 +0000)]
r19947: Change regkey_open_internal to take the parent key and a talloc_ctx as
arguments. This also replaces regkey_close_internal by TALLOC_FREE.
Volker
Volker Lendecke [Wed, 29 Nov 2006 08:51:18 +0000 (08:51 +0000)]
r19946: in SetKeySec, sd is just a [in,ref] ptr
Volker Lendecke [Wed, 29 Nov 2006 08:11:33 +0000 (08:11 +0000)]
r19945: Fix a segfault -- lookup_rids needs to init the names even on failure
Volker Lendecke [Wed, 29 Nov 2006 06:26:12 +0000 (06:26 +0000)]
r19944: Fix from Don Watson -- thanks
Volker Lendecke [Wed, 29 Nov 2006 06:15:28 +0000 (06:15 +0000)]
r19943: Fix bug 4267 -- Thanks to David!
Volker Lendecke [Wed, 29 Nov 2006 06:09:24 +0000 (06:09 +0000)]
r19942: Fix Coverity id 333, a dereference before a NULL check.
Metze, you wanted to port talloc_get_type_abort() to 4. Should I just use it
in 3-ldb?
Volker
James Peach [Tue, 28 Nov 2006 22:55:32 +0000 (22:55 +0000)]
r19941: One copy of this code should be sufficient.
Gerald Carter [Tue, 28 Nov 2006 21:11:20 +0000 (21:11 +0000)]
r19939: ,fix compile warning about unused functions when not using heimdal
Jeremy Allison [Tue, 28 Nov 2006 18:51:49 +0000 (18:51 +0000)]
r19936: Patch from Kai Blin <kai.blin@gmail.com> to
match Windows NTLMSSP flags.
Jeremy.
Stefan Metzmacher [Tue, 28 Nov 2006 17:47:41 +0000 (17:47 +0000)]
r19935: always use discard_const_p() in lib/ldb/
metze
Volker Lendecke [Tue, 28 Nov 2006 13:41:45 +0000 (13:41 +0000)]
r19932: Add some const
Volker Lendecke [Tue, 28 Nov 2006 13:09:32 +0000 (13:09 +0000)]
r19930: Revert the winreg idl changes. At least enumkey does not work anymore today.
With more than 5 different trees I can't swear that I did test this properly
yesterday. Sorry for the noise.
Volker
Volker Lendecke [Tue, 28 Nov 2006 12:18:00 +0000 (12:18 +0000)]
r19929: Fix indentation
Volker Lendecke [Tue, 28 Nov 2006 09:06:04 +0000 (09:06 +0000)]
r19928: Fix klokwork id 4509, 4573, 4574.
Volker Lendecke [Tue, 28 Nov 2006 08:11:04 +0000 (08:11 +0000)]
r19927: Fix klokwork ID 4702
Gerald Carter [Mon, 27 Nov 2006 19:06:58 +0000 (19:06 +0000)]
r19921: Add license and copyright info
Volker Lendecke [Mon, 27 Nov 2006 14:29:55 +0000 (14:29 +0000)]
r19919: Convert winreg_EnumKey to use ref ** instead of a unique *.
Volker
Volker Lendecke [Mon, 27 Nov 2006 14:05:28 +0000 (14:05 +0000)]
r19918: Convert winreg_CreateKey to use a ref ** instead of a unique *. W2k3 can still
create keys on Samba and vice versa.
Jelmer, please check.
Thanks,
Volker
Volker Lendecke [Mon, 27 Nov 2006 08:41:41 +0000 (08:41 +0000)]
r19917: Fix warnings
Volker Lendecke [Mon, 27 Nov 2006 08:11:10 +0000 (08:11 +0000)]
r19916: Fix some c++ warnings
Volker Lendecke [Mon, 27 Nov 2006 08:05:42 +0000 (08:05 +0000)]
r19915: Fix two type-punned warnings
Volker Lendecke [Mon, 27 Nov 2006 07:52:46 +0000 (07:52 +0000)]
r19914: The "default" value with the name "" need different 0-length treatment as the
other StringBufs, otherwise clicking on a key with this value being set leads
to regedit.exe on w2k3 chew all memory.
Volker Lendecke [Mon, 27 Nov 2006 07:44:19 +0000 (07:44 +0000)]
r19913: Fix a const warning
Volker Lendecke [Mon, 27 Nov 2006 07:41:59 +0000 (07:41 +0000)]
r19912: Move the subkey cache to srv_winreg_nt.c
Volker Lendecke [Sat, 25 Nov 2006 17:14:39 +0000 (17:14 +0000)]
r19900: Fix klokwork ID 3148, 3149
Volker Lendecke [Sat, 25 Nov 2006 17:11:29 +0000 (17:11 +0000)]
r19899: Fix some C++ warnings and klokwork ID 3147
Volker Lendecke [Sat, 25 Nov 2006 17:07:49 +0000 (17:07 +0000)]
r19898: Fix klokwork ids 3127, 3128, 3129, 3130
Volker Lendecke [Sat, 25 Nov 2006 16:55:11 +0000 (16:55 +0000)]
r19896: Fix klokwork id 2279
Volker Lendecke [Sat, 25 Nov 2006 16:53:56 +0000 (16:53 +0000)]
r19895: Fix klokwork id 2278
Volker Lendecke [Sat, 25 Nov 2006 16:43:26 +0000 (16:43 +0000)]
r19894: Fix klokwork id 2192
Volker Lendecke [Sat, 25 Nov 2006 16:42:21 +0000 (16:42 +0000)]
r19893: Fix klokwork id 2191
Volker Lendecke [Sat, 25 Nov 2006 16:41:06 +0000 (16:41 +0000)]
r19892: Fix klokwork id 2190
Volker Lendecke [Sat, 25 Nov 2006 16:39:34 +0000 (16:39 +0000)]
r19891: Fix klokwork id 2189
Volker Lendecke [Sat, 25 Nov 2006 16:38:23 +0000 (16:38 +0000)]
r19890: Fix klokwork ID 2188
Volker Lendecke [Sat, 25 Nov 2006 16:35:22 +0000 (16:35 +0000)]
r19889: Fix klokwork ID 2187
Volker Lendecke [Sat, 25 Nov 2006 09:39:25 +0000 (09:39 +0000)]
r19883: Fix bug 4248 -- thanks to Pascal Terjan :-)
James Peach [Fri, 24 Nov 2006 05:35:05 +0000 (05:35 +0000)]
r19873: Make sure we are privileged when doing DMAPI operations on systems
that don't have capability support. Patch by J Raynor <raynorj@mn.rr.com>.
Volker Lendecke [Thu, 23 Nov 2006 22:58:50 +0000 (22:58 +0000)]
r19872: Move the value cache to srv_winreg_nt.c. Fix some minor issues found while
playing with regedit.exe.
Volker
Volker Lendecke [Thu, 23 Nov 2006 19:21:11 +0000 (19:21 +0000)]
r19867: Introduce struct regkey_info in srv_winreg_nt.c to be able to re-add the
QueryValue and later the QueryKey cache independent of the backend.
Volker
Volker Lendecke [Thu, 23 Nov 2006 16:19:06 +0000 (16:19 +0000)]
r19860: Streamline _winreg_QueryValue a bit. We've been pushing around memory
considerably here.
This temporarily removes a cache for the tdb based registry, I'll re-add that
in srv_winreg_nt.c in the next step.
This fixes creating/renaming values from the windows regedit.exe, as "New
Value #1" was not entering the cache after being created.
Volker
Volker Lendecke [Thu, 23 Nov 2006 15:51:20 +0000 (15:51 +0000)]
r19858: Fix a memleak, add a const
Volker Lendecke [Thu, 23 Nov 2006 15:39:37 +0000 (15:39 +0000)]
r19857: Make the perfcounter compile after tdb changes
Volker Lendecke [Thu, 23 Nov 2006 10:42:58 +0000 (10:42 +0000)]
r19853: Update a link
James Peach [Thu, 23 Nov 2006 06:44:05 +0000 (06:44 +0000)]
r19852: Fix the build for the VFS examples. Fixes bugzilla #3931.
James Peach [Thu, 23 Nov 2006 06:07:03 +0000 (06:07 +0000)]
r19851: Disable gcc PIE options on Darwin.
Jelmer Vernooij [Wed, 22 Nov 2006 21:40:23 +0000 (21:40 +0000)]
r19849: Fix compilation after idl changes.
Jelmer Vernooij [Wed, 22 Nov 2006 18:57:07 +0000 (18:57 +0000)]
r19848: Sync with Samba4 - no top-level unique pointers.
Volker Lendecke [Wed, 22 Nov 2006 16:53:28 +0000 (16:53 +0000)]
r19841: Wrap regdb_store_keys and regdb_store_values in tdb transactions
Volker Lendecke [Wed, 22 Nov 2006 16:39:07 +0000 (16:39 +0000)]
r19840: Fix an uninitialized variable
Volker Lendecke [Wed, 22 Nov 2006 15:55:48 +0000 (15:55 +0000)]
r19839: Fix the build, we are not there yet :-)
Volker Lendecke [Wed, 22 Nov 2006 15:41:29 +0000 (15:41 +0000)]
r19838: We have to delete the value record as well, otherwise the old values pop up
again if the key is re-created.
Volker
Volker Lendecke [Wed, 22 Nov 2006 15:10:46 +0000 (15:10 +0000)]
r19837: Some reformatting (Jerry, I hope you do not mind
Volker Lendecke [Wed, 22 Nov 2006 14:17:36 +0000 (14:17 +0000)]
r19835: Some net sam policy improvements.
Thanks to Karolin Seeger <ks@sernet.de>
Volker
Volker Lendecke [Tue, 21 Nov 2006 21:19:51 +0000 (21:19 +0000)]
r19828: Add a helper function to pull *and* unparse local registry values
Volker Lendecke [Tue, 21 Nov 2006 21:18:53 +0000 (21:18 +0000)]
r19827: Move registry_push/pull_value to lib/util_reg.c
Jim McDonough [Tue, 21 Nov 2006 20:44:09 +0000 (20:44 +0000)]
r19826: Fix typo
Volker Lendecke [Tue, 21 Nov 2006 20:10:39 +0000 (20:10 +0000)]
r19825: To create a key, smbd also needs read privs assigned
Volker Lendecke [Tue, 21 Nov 2006 19:47:48 +0000 (19:47 +0000)]
r19824: Fix the max value calculation in QueryInfoKey